aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-17 18:43:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-17 18:43:52 -0400
commit0cfd81031a26717fe14380d18275f8e217571615 (patch)
tree78a84e4cb97e7f45eb77dc0fbd8857a5dd717869 /drivers/media/radio
parentf7ea4a4ba84f382e8eb143e435551de0feee5b4b (diff)
parent802f389a2cc6e2771b8de915ac241456d41eb79e (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (94 commits) USB: remove err() macro from more usb drivers USB: remove err() macro from usb misc drivers USB: remove err() macro from usb core code USB: remove err() macro from usb class drivers USB: remove use of err() in drivers/usb/serial USB: remove info() macro from usb mtd drivers USB: remove info() macro from usb input drivers USB: remove info() macro from usb network drivers USB: remove info() macro from remaining usb drivers USB: remove info() macro from usb/misc drivers USB: remove info() macro from usb/serial drivers USB: remove warn macro from HID core USB: remove warn() macro from usb drivers USB: remove warn() macro from usb net drivers USB: remove warn() macro from usb media drivers USB: remove warn() macro from usb input drivers usb/fsl_qe_udc: clear data toggle on clear halt request usb/fsl_qe_udc: fix response to get status request fsl_usb2_udc: Fix oops on probe failure. fsl_usb2_udc: Add a wmb before priming endpoint. ...
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/dsbr100.c13
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);