Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alan Stern and committed by
Greg Kroah-Hartman
beb7b04a da01c7a4

+2 -2
+1 -1
drivers/media/video/tlg2300/pd-main.c
··· 455 455 456 456 device_init_wakeup(&udev->dev, 1); 457 457 #ifdef CONFIG_PM 458 - pd->udev->autosuspend_disabled = 0; 459 458 pd->udev->autosuspend_delay = HZ * PM_SUSPEND_DELAY; 459 + usb_enable_autosuspend(pd->udev); 460 460 461 461 if (in_hibernation(pd)) { 462 462 INIT_WORK(&pd->pm_work, hibernation_resume);
+1 -1
drivers/net/wimax/i2400m/usb.c
··· 505 505 iface->needs_remote_wakeup = 1; /* autosuspend (15s delay) */ 506 506 device_init_wakeup(dev, 1); 507 507 usb_dev->autosuspend_delay = 15 * HZ; 508 - usb_dev->autosuspend_disabled = 0; 508 + usb_enable_autosuspend(usb_dev); 509 509 #endif 510 510 511 511 result = i2400m_setup(i2400m, I2400M_BRI_MAC_REINIT);