mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Driver core: don't initialize wakeup flags
@ 2010-03-08 21:46 Alan Stern
  2010-03-08 22:00 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2010-03-08 21:46 UTC (permalink / raw)
  To: Greg KH; +Cc: Kernel development list, Linux-pm mailing list

This patch (as1351) removes an unnecessary and unwanted assignment
from device_initialize().  The wakeup flags are set to 0 along with
everything else when the device structure is allocated, so we don't
need to do it again.  Furthermore, the subsystem might already have
set these flags to their correct values; we don't want to override it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>

---

Index: usb-2.6/drivers/base/core.c
===================================================================
--- usb-2.6.orig/drivers/base/core.c
+++ usb-2.6/drivers/base/core.c
@@ -561,7 +561,6 @@ void device_initialize(struct device *de
 	mutex_init(&dev->mutex);
 	spin_lock_init(&dev->devres_lock);
 	INIT_LIST_HEAD(&dev->devres_head);
-	device_init_wakeup(dev, 0);
 	device_pm_init(dev);
 	set_dev_node(dev, -1);
 }


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

end of thread, other threads:[~2010-03-08 22:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-08 21:46 [PATCH] Driver core: don't initialize wakeup flags Alan Stern
2010-03-08 22:00 ` Greg KH
2010-03-08 22:17   ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®