]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (10057): dsbr100: place dev_warn instead of printk
authorAlexey Klimov <klimov.linux@gmail.com>
Sun, 28 Dec 2008 00:42:39 +0000 (21:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:10 +0000 (09:40 -0200)
Remove printk in one line and place dev_warn there.

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/dsbr100.c

index 84914fb267bebbcc88d66d9834b670f6eaebdd2a..e1cc369bdbd65e79c18d7e571fb1a3c8a5cfefaa 100644 (file)
@@ -495,7 +495,8 @@ static int usb_dsbr100_open(struct inode *inode, struct file *file)
        retval = dsbr100_setfreq(radio, radio->curfreq);
 
        if (retval == -1)
-               printk(KERN_WARNING KBUILD_MODNAME ": Set frequency failed\n");
+               dev_warn(&radio->usbdev->dev,
+                       "set frequency failed\n");
 
        unlock_kernel();
        return 0;