]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: hook up greybus to the driver model
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 24 Oct 2014 09:34:46 +0000 (17:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Oct 2014 09:40:59 +0000 (17:40 +0800)
commitf0f61b90427b776b884821cde483528580f6d630
tree51666ef5ef41806e6d8f5f5b27ce69da286a460e
parent2d5e4fa9dc2e629b1ace5fa715f1d6bb2a71d61f
greybus: hook up greybus to the driver model

This patch hooks up modules, interfaces, and connections to the driver
model.  Now we have a correct hierarchy, and drivers can be correctly
bound to the proper portions in the future.  Devices are correctly
reference counted and torn down in the proper order on removal of a
module.

Some basic sysfs attributes have been created for interfaces and
connections.  Module attributes are not working properly, but that will
be fixed in future changes.

This has been tested on Alex's machine, with multiple hotplug and unplug
operations of a module working correctly.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/core.c
drivers/staging/greybus/greybus.h
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h
drivers/staging/greybus/module.c