diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-04-30 12:14:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:40 -0400 |
commit | beb7b04a09a9da8b12417f7b74fbcceedb087fc3 (patch) | |
tree | f8444bf36675818b8cbd6c8578d1647bbcd9a5ea /drivers/media | |
parent | da01c7a49bfc94dbfa66af5ca5e1063b10bc6a10 (diff) |
USB: remove leftover references to udev->autosuspend_disabled
This patch (as1373) fixes a couple of drivers outside the USB
subtree. Devices are now disabled or enabled for autosuspend by
calling a core function instead of setting a flag.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/tlg2300/pd-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tlg2300/pd-main.c b/drivers/media/video/tlg2300/pd-main.c index 2cf0ebf9f28b..a6400dad12ae 100644 --- a/drivers/media/video/tlg2300/pd-main.c +++ b/drivers/media/video/tlg2300/pd-main.c | |||
@@ -455,8 +455,8 @@ static int poseidon_probe(struct usb_interface *interface, | |||
455 | 455 | ||
456 | device_init_wakeup(&udev->dev, 1); | 456 | device_init_wakeup(&udev->dev, 1); |
457 | #ifdef CONFIG_PM | 457 | #ifdef CONFIG_PM |
458 | pd->udev->autosuspend_disabled = 0; | ||
459 | pd->udev->autosuspend_delay = HZ * PM_SUSPEND_DELAY; | 458 | pd->udev->autosuspend_delay = HZ * PM_SUSPEND_DELAY; |
459 | usb_enable_autosuspend(pd->udev); | ||
460 | 460 | ||
461 | if (in_hibernation(pd)) { | 461 | if (in_hibernation(pd)) { |
462 | INIT_WORK(&pd->pm_work, hibernation_resume); | 462 | INIT_WORK(&pd->pm_work, hibernation_resume); |