Skip to contentSkip to conversation

radio-mr800: place dev_err instead of dev_warn

PATCH In review Alexey Klimov 1 participant 1 message Feb 3, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 radio-mr800: place dev_err instead of dev_warn

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

--

linux/drivers/media/radio/radio-mr800.c +1 -1
diff -r ed1aa70cfdfa linux/drivers/media/radio/radio-mr800.c
@@ -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);
Signature · 1 line
Best regards, Klimov Alexey