LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [Patch 1/2] driver core: Remove device_is_registered() in device_move().
@ 2007-01-08 19:16 Cornelia Huck
  0 siblings, 0 replies; only message in thread
From: Cornelia Huck @ 2007-01-08 19:16 UTC (permalink / raw)
  To: Greg K-H; +Cc: Marcel Holtmann, linux-kernel

From: Cornelia Huck <cornelia.huck@de.ibm.com>

device_is_registered() will always be false for a device with no bus. Remove
this check and trust the caller to know what they're doing.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>

---
 drivers/base/core.c |    4 ----
 1 files changed, 4 deletions(-)

--- linux-2.6.orig/drivers/base/core.c
+++ linux-2.6/drivers/base/core.c
@@ -1066,10 +1066,6 @@ int device_move(struct device *dev, stru
 	if (!dev)
 		return -EINVAL;
 
-	if (!device_is_registered(dev)) {
-		error = -EINVAL;
-		goto out;
-	}
 	new_parent = get_device(new_parent);
 	if (!new_parent) {
 		error = -EINVAL;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-08 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-08 19:16 [Patch 1/2] driver core: Remove device_is_registered() in device_move() Cornelia Huck

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).