From: Cornelia Huck Date: Mon, 8 Jan 2007 19:16:44 +0000 (+0100) Subject: driver core: Allow device_move(dev, NULL). X-Git-Tag: v2.6.21-rc1~92^2~30^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c744aeae9d173a953b771a7ad5c872f91fa99dec;p=pandora-kernel.git driver core: Allow device_move(dev, NULL). If we allow NULL as the new parent in device_move(), we need to make sure that the device is placed into the same place as it would if it was newly registered: - Consider the device virtual tree. In order to be able to reuse code, setup_parent() has been tweaked a bit. - kobject_move() can fall back to the kset's kobject. - sysfs_move_dir() uses the sysfs root dir as fallback. Signed-off-by: Cornelia Huck Cc: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed