]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: Allow sysfs_move_dir(..., NULL) again.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 6 Oct 2009 13:33:35 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Oct 2009 22:16:25 +0000 (15:16 -0700)
commit4adb3437ffd92abb8afd968a33549cdd3a81874e
treeb8505a5394bc7f825753e0451f421b8333388e37
parent864c024d2d66c129ed67f22ba567262ca6303b0a
sysfs: Allow sysfs_move_dir(..., NULL) again.

As device_move() and kobject_move() both handle a NULL destination,
sysfs_move_dir() should do this as well (again) and fall back to
sysfs_root in that case.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c