mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: Marcel Holtmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
43cb76d91e
commit
717e48c29d
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue