]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
driver core: add root_device_register()
authorMark McLoughlin <markmc@redhat.com>
Mon, 15 Dec 2008 12:58:26 +0000 (12:58 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 18:44:33 +0000 (10:44 -0800)
commit0aa0dc41bfd993491c2344870eee7a3b218551fb
treebf0896c7e0bb9f5b7e6253fc15c8846b6f188d08
parent7232800ba8aca1c070d43a81cc49991f230b5da1
driver core: add root_device_register()

Add support for allocating root device objects which group
device objects under /sys/devices directories.

Also add a sysfs 'module' symlink which points to the owner
of the root device object. This symlink will be used in virtio
to allow userspace to determine which virtio bus implementation
a given device is associated with.

[Includes suggestions from Cornelia Huck]

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
include/linux/device.h