diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-14 12:37:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-17 17:41:08 -0400 |
commit | aa82661baf8a48379355ffa8bf162b07cf487600 (patch) | |
tree | 22b555a5227c2d6f3a145d5a5350b2b473602262 /drivers/media/radio/dsbr100.c | |
parent | 1817b1692a2eab022e805d32e910f4556c89dce8 (diff) |
USB: remove warn() macro from usb media drivers
USB should not be having it's own printk macros, so remove warn() and
use the system-wide standard of dev_warn() wherever possible. In the
few places that will not work out, use a basic printk().
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media/radio/dsbr100.c')
-rw-r--r-- | drivers/media/radio/dsbr100.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index 66783fffe4c1..78f56944e640 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c | |||
@@ -310,7 +310,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
310 | 310 | ||
311 | radio->curfreq = f->frequency; | 311 | radio->curfreq = f->frequency; |
312 | if (dsbr100_setfreq(radio, radio->curfreq)==-1) | 312 | if (dsbr100_setfreq(radio, radio->curfreq)==-1) |
313 | warn("Set frequency failed"); | 313 | dev_warn(&radio->usbdev->dev, "Set frequency failed\n"); |
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |
316 | 316 | ||
@@ -361,12 +361,14 @@ static int vidioc_s_ctrl(struct file *file, void *priv, | |||
361 | case V4L2_CID_AUDIO_MUTE: | 361 | case V4L2_CID_AUDIO_MUTE: |
362 | if (ctrl->value) { | 362 | if (ctrl->value) { |
363 | if (dsbr100_stop(radio) == -1) { | 363 | if (dsbr100_stop(radio) == -1) { |
364 | warn("Radio did not respond properly"); | 364 | dev_warn(&radio->usbdev->dev, |
365 | "Radio did not respond properly\n"); | ||
365 | return -EBUSY; | 366 | return -EBUSY; |
366 | } | 367 | } |
367 | } else { | 368 | } else { |
368 | if (dsbr100_start(radio) == -1) { | 369 | if (dsbr100_start(radio) == -1) { |
369 | warn("Radio did not respond properly"); | 370 | dev_warn(&radio->usbdev->dev, |
371 | "Radio did not respond properly\n"); | ||
370 | return -EBUSY; | 372 | return -EBUSY; |
371 | } | 373 | } |
372 | } | 374 | } |
@@ -416,7 +418,8 @@ static int usb_dsbr100_open(struct inode *inode, struct file *file) | |||
416 | radio->muted = 1; | 418 | radio->muted = 1; |
417 | 419 | ||
418 | if (dsbr100_start(radio)<0) { | 420 | if (dsbr100_start(radio)<0) { |
419 | warn("Radio did not start up properly"); | 421 | dev_warn(&radio->usbdev->dev, |
422 | "Radio did not start up properly\n"); | ||
420 | radio->users = 0; | 423 | radio->users = 0; |
421 | unlock_kernel(); | 424 | unlock_kernel(); |
422 | return -EIO; | 425 | return -EIO; |
@@ -501,7 +504,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf, | |||
501 | radio->curfreq = FREQ_MIN*FREQ_MUL; | 504 | radio->curfreq = FREQ_MIN*FREQ_MUL; |
502 | video_set_drvdata(radio->videodev, radio); | 505 | video_set_drvdata(radio->videodev, radio); |
503 | if (video_register_device(radio->videodev, VFL_TYPE_RADIO, radio_nr) < 0) { | 506 | if (video_register_device(radio->videodev, VFL_TYPE_RADIO, radio_nr) < 0) { |
504 | warn("Could not register video device"); | 507 | dev_warn(&intf->dev, "Could not register video device\n"); |
505 | video_device_release(radio->videodev); | 508 | video_device_release(radio->videodev); |
506 | kfree(radio->transfer_buffer); | 509 | kfree(radio->transfer_buffer); |
507 | kfree(radio); | 510 | kfree(radio); |