All of lore.kernel.org
 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
  2010-03-08 22:00 ` Greg KH
  0 siblings, 2 replies; 6+ 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] 6+ messages in thread
* [PATCH] Driver core: don't initialize wakeup flags
@ 2010-03-08 21:46 Alan Stern
  0 siblings, 0 replies; 6+ messages in thread
From: Alan Stern @ 2010-03-08 21:46 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux-pm mailing list, Kernel development 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] 6+ messages in thread

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

Thread overview: 6+ 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:00 ` Greg KH
2010-03-08 22:17   ` Alan Stern
2010-03-08 22:17   ` Alan Stern
  -- strict thread matches above, loose matches on Subject: below --
2010-03-08 21:46 Alan Stern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.