aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-07-12 15:55:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-30 19:23:12 -0400
commitc1af23c4f7e4c95f0002b6801a9dd82b22cae35d (patch)
tree6a5d3ecc55ee909f9683024e173f522c1d1e6640
parente0a9b1770bac048171961625875aaf15118a7ae9 (diff)
[media] radio-si470x: restore ctrl settings after suspend/resume
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/radio/si470x/radio-si470x-usb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c
index 40b963c983c6..0204cf445387 100644
--- a/drivers/media/radio/si470x/radio-si470x-usb.c
+++ b/drivers/media/radio/si470x/radio-si470x-usb.c
@@ -792,11 +792,16 @@ static int si470x_usb_driver_suspend(struct usb_interface *intf,
792static int si470x_usb_driver_resume(struct usb_interface *intf) 792static int si470x_usb_driver_resume(struct usb_interface *intf)
793{ 793{
794 struct si470x_device *radio = usb_get_intfdata(intf); 794 struct si470x_device *radio = usb_get_intfdata(intf);
795 int ret;
795 796
796 dev_info(&intf->dev, "resuming now...\n"); 797 dev_info(&intf->dev, "resuming now...\n");
797 798
798 /* start radio */ 799 /* start radio */
799 return si470x_start_usb(radio); 800 ret = si470x_start_usb(radio);
801 if (ret == 0)
802 v4l2_ctrl_handler_setup(&radio->hdl);
803
804 return ret;
800} 805}
801 806
802 807