V4L/DVB (10456): radio-mr800: place dev_err instead of dev_warn
authorAlexey Klimov <klimov.linux@gmail.com>
Thu, 5 Feb 2009 11:49:58 +0000 (08:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:39 +0000 (12:42 -0300)
There should be dev_err message if video_register_device() fails.
Correct this situation.

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>
drivers/media/radio/radio-mr800.c

index 6ffb72717623e0bf4c6211f494e6195924271b52..ef909a583e9e4f7650ffd3653678c3e8e652b48c 100644 (file)
@@ -669,7 +669,7 @@ static int usb_amradio_probe(struct usb_interface *intf,
        video_set_drvdata(radio->videodev, radio);
        retval = video_register_device(radio->videodev, VFL_TYPE_RADIO, radio_nr);
        if (retval < 0) {
-               dev_warn(&intf->dev, "could not register video device\n");
+               dev_err(&intf->dev, "could not register video device\n");
                video_device_release(radio->videodev);
                kfree(radio->buffer);
                kfree(radio);