diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2007-01-08 20:16:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 10:37:11 -0800 |
commit | 717e48c29d9a58f4d31c1651bec364212da5f6b2 (patch) | |
tree | ff2ca86080acb974b89d4a68997528f1b5bf3533 /drivers/base | |
parent | 43cb76d91ee85f579a69d42bc8efc08bac560278 (diff) | |
download | kernel_samsung_espresso10-717e48c29d9a58f4d31c1651bec364212da5f6b2.zip kernel_samsung_espresso10-717e48c29d9a58f4d31c1651bec364212da5f6b2.tar.gz kernel_samsung_espresso10-717e48c29d9a58f4d31c1651bec364212da5f6b2.tar.bz2 |
driver core: Remove device_is_registered() in device_move().
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>
Cc: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 67b79a7..36eedfd 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1004,10 +1004,6 @@ int device_move(struct device *dev, struct device *new_parent) if (!dev) return -EINVAL; - if (!device_is_registered(dev)) { - error = -EINVAL; - goto out; - } new_parent = get_device(new_parent); if (!new_parent) { error = -EINVAL; |