diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2008-12-27 20:31:52 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:40:11 -0500 |
commit | 7e1ca8491d046d1f01de105add7f2f8f477869ec (patch) | |
tree | 78a894720d49958c3e598db84d71d750df64eac7 /drivers/media/radio/dsbr100.c | |
parent | 417b7953668574ff38d3f2dc76e9fe669f121469 (diff) |
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: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/dsbr100.c')
-rw-r--r-- | drivers/media/radio/dsbr100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index e0d7485226cd..5de5def9c166 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c | |||
@@ -713,7 +713,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf, | |||
713 | video_set_drvdata(&radio->videodev, radio); | 713 | video_set_drvdata(&radio->videodev, radio); |
714 | retval = video_register_device(&radio->videodev, VFL_TYPE_RADIO, radio_nr); | 714 | retval = video_register_device(&radio->videodev, VFL_TYPE_RADIO, radio_nr); |
715 | if (retval < 0) { | 715 | if (retval < 0) { |
716 | dev_warn(&intf->dev, "Could not register video device\n"); | 716 | dev_err(&intf->dev, "couldn't register video device\n"); |
717 | kfree(radio->transfer_buffer); | 717 | kfree(radio->transfer_buffer); |
718 | kfree(radio); | 718 | kfree(radio); |
719 | return -EIO; | 719 | return -EIO; |