Commit 7e1ca849 authored by Alexey Klimov's avatar Alexey Klimov Committed by Mauro Carvalho Chehab

V4L/DVB (10059): dsbr100: dev_err instead of dev_warn

We should use dev_err (not dev_warn) if video_register_device fails.
Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 417b7953
...@@ -713,7 +713,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf, ...@@ -713,7 +713,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf,
video_set_drvdata(&radio->videodev, radio); video_set_drvdata(&radio->videodev, radio);
retval = video_register_device(&radio->videodev, VFL_TYPE_RADIO, radio_nr); retval = video_register_device(&radio->videodev, VFL_TYPE_RADIO, radio_nr);
if (retval < 0) { if (retval < 0) {
dev_warn(&intf->dev, "Could not register video device\n"); dev_err(&intf->dev, "couldn't register video device\n");
kfree(radio->transfer_buffer); kfree(radio->transfer_buffer);
kfree(radio); kfree(radio);
return -EIO; return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment