All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch review 2/8] radio-mr800: place dev_err instead of dev_warn
@ 2009-02-03  1:08 Alexey Klimov
  0 siblings, 0 replies; only message in thread
From: Alexey Klimov @ 2009-02-03  1:08 UTC (permalink / raw)
  To: Douglas Schilling Landgraf; +Cc: linux-media

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

Signed-off-by: Alexey Klimov <klimov.linux@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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-03  1:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03  1:08 [patch review 2/8] radio-mr800: place dev_err instead of dev_warn Alexey Klimov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.