summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2014-10-24 11:34:46 +0200
committerGreg Kroah-Hartman2014-10-24 11:40:59 +0200
commitf0f61b90427b776b884821cde483528580f6d630 (patch)
tree51666ef5ef41806e6d8f5f5b27ce69da286a460e /drivers/staging/greybus/greybus.h
parentgreybus: update AP id service message (diff)
downloadkernel-qcow2-linux-f0f61b90427b776b884821cde483528580f6d630.tar.gz
kernel-qcow2-linux-f0f61b90427b776b884821cde483528580f6d630.tar.xz
kernel-qcow2-linux-f0f61b90427b776b884821cde483528580f6d630.zip
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>
Diffstat (limited to 'drivers/staging/greybus/greybus.h')
-rw-r--r--drivers/staging/greybus/greybus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index 617d55ca7e1d..f287f3b0a3e5 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -261,6 +261,7 @@ int gb_register_cport_complete(struct gb_module *gmod,
void *context);
void gb_deregister_cport_complete(u16 cport_id);
+extern struct bus_type greybus_bus_type;
extern const struct attribute_group *greybus_module_groups[];
int gb_i2c_device_init(struct gb_connection *connection);