linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Calling device_init_wakeup() on driver removal
@ 2017-01-15  4:46 Guenter Roeck
  2017-01-15 14:49 ` Rafael J. Wysocki
  0 siblings, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2017-01-15  4:46 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, Pavel Machek
  Cc: Greg Kroah-Hartman, linux-pm, linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-17  4:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-15  4:46 Calling device_init_wakeup() on driver removal Guenter Roeck
2017-01-15 14:49 ` Rafael J. Wysocki
2017-01-15 15:23   ` Guenter Roeck
2017-01-16 21:50     ` Rafael J. Wysocki
2017-01-17  4:37       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).