Messages in this thread | | | From | Guenter Roeck <> | Subject | Calling device_init_wakeup() on driver removal | Date | Sat, 14 Jan 2017 20:46:05 -0800 |
| |
Hi folks,
while looking through driver initialization and removal functions, I noticed that many drivers call device_init_wakeup(dev, false) in the removal function. Given that the driver is about to be removed, that doesn't make much sense to me, especially since device_wakeup_disable() is called from device_pm_remove() anyway.
Is it safe to assume that all those calls can be removed, or is there a possible reason for keeping them around ?
Thanks, Guenter
| |