summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/usb.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-05-09 18:15:12 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-14 19:13:57 +0200
commitea7c47771ba13e143b3c328af8e03a1c45045cf0 (patch)
tree82a2de8920c08d387f9d471e1be9cb23e87de701 /drivers/staging/greybus/usb.c
parent66b9e09e28b0c32d9b071fc9084bbb8880b88d74 (diff)
downloadop-kernel-dev-ea7c47771ba13e143b3c328af8e03a1c45045cf0.zip
op-kernel-dev-ea7c47771ba13e143b3c328af8e03a1c45045cf0.tar.gz
greybus: usb: Create separate module
Create separate module for usb gpbridge driver. Tested on EVT 1.5 by inserting GP test module, all the devices were enumerated correctly. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/usb.c')
-rw-r--r--drivers/staging/greybus/usb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/greybus/usb.c b/drivers/staging/greybus/usb.c
index 2b4789b..2f68a1b 100644
--- a/drivers/staging/greybus/usb.c
+++ b/drivers/staging/greybus/usb.c
@@ -242,6 +242,7 @@ static const struct gpbridge_device_id gb_usb_id_table[] = {
{ GPBRIDGE_PROTOCOL(GREYBUS_PROTOCOL_USB) },
{ },
};
+MODULE_DEVICE_TABLE(gpbridge, gb_usb_id_table);
static struct gpbridge_driver usb_driver = {
.name = "usb",
@@ -249,4 +250,6 @@ static struct gpbridge_driver usb_driver = {
.remove = gb_usb_remove,
.id_table = gb_usb_id_table,
};
-gb_gpbridge_builtin_driver(usb_driver);
+
+module_gpbridge_driver(usb_driver);
+MODULE_LICENSE("GPL v2");
OpenPOWER on IntegriCloud