diff options
-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 67b79a7592a9..36eedfdeb547 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) | |||
1004 | if (!dev) | 1004 | if (!dev) |
1005 | return -EINVAL; | 1005 | return -EINVAL; |
1006 | 1006 | ||
1007 | if (!device_is_registered(dev)) { | ||
1008 | error = -EINVAL; | ||
1009 | goto out; | ||
1010 | } | ||
1011 | new_parent = get_device(new_parent); | 1007 | new_parent = get_device(new_parent); |
1012 | if (!new_parent) { | 1008 | if (!new_parent) { |
1013 | error = -EINVAL; | 1009 | error = -EINVAL; |