aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/tlg2300
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-11-17 10:56:01 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-17 13:24:47 -0800
commit2f15744c1d90ee2e82f8ae5724b44b1cdf31715c (patch)
tree4ac4be9a92e45b428bfbf4aaf39937c6f9a62bb5 /drivers/media/video/tlg2300
parentaa02f172ac85f144d0baa248e27e34e165963f94 (diff)
USB: fix leftover references to udev->autosuspend_delay
This patch (as1436) takes care of leftover references to udev->autosuspend_delay that didn't get removed during the earlier conversion to the runtime-PM autosuspend API. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media/video/tlg2300')
-rw-r--r--drivers/media/video/tlg2300/pd-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/tlg2300/pd-main.c b/drivers/media/video/tlg2300/pd-main.c
index 4555f4a5f4c..e33b428a801 100644
--- a/drivers/media/video/tlg2300/pd-main.c
+++ b/drivers/media/video/tlg2300/pd-main.c
@@ -453,7 +453,8 @@ static int poseidon_probe(struct usb_interface *interface,
device_init_wakeup(&udev->dev, 1);
#ifdef CONFIG_PM
- pd->udev->autosuspend_delay = HZ * PM_SUSPEND_DELAY;
+ pm_runtime_set_autosuspend_delay(&pd->udev->dev,
+ 1000 * PM_SUSPEND_DELAY);
usb_enable_autosuspend(pd->udev);
if (in_hibernation(pd)) {