There should be dev_err message if video_register_device() fails.
Correct this situation.

Signed-off-by: Alexey Klimov <klimov.li...@gmail.com>

--
diff -r ed1aa70cfdfa linux/drivers/media/radio/radio-mr800.c
--- a/linux/drivers/media/radio/radio-mr800.c   Mon Feb 02 02:29:52 2009 +0300
+++ b/linux/drivers/media/radio/radio-mr800.c   Mon Feb 02 02:52:52 2009 +0300
@@ -672,7 +672,7 @@
        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);


-- 
Best regards, Klimov Alexey

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to