diff --git a/drivers/base/core.c b/drivers/base/core.c index 67b79a7592a9d94c92d0e737d82638fdc5e7f74d..36eedfdeb547aacb1c580b896366faa73201bd9c 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;