summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/core.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-11-25 15:59:21 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-11-25 15:35:59 -0800
commit0f37860de9a86d25f86ccc95631fa03fa766f31e (patch)
tree31854eac530903f1681a84dd81afd48387084424 /drivers/staging/greybus/core.c
parentdc3da5db2858c3fb33441988d1b6d56c06e53d7d (diff)
greybus: kill the endo
Remove the now unused endo and module code. Note that the never-implemented serial and version attributes of the endo can be implemented as svc attributes if needed. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r--drivers/staging/greybus/core.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
index d1e26c4a26fc..9dcb1bf311c0 100644
--- a/drivers/staging/greybus/core.c
+++ b/drivers/staging/greybus/core.c
@@ -78,23 +78,12 @@ static int greybus_module_match(struct device *dev, struct device_driver *drv)
static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct gb_host_device *hd = NULL;
- struct gb_module *module = NULL;
struct gb_interface *intf = NULL;
struct gb_bundle *bundle = NULL;
struct gb_svc *svc = NULL;
- if (is_gb_endo(dev)) {
- /*
- * Not much to do for an endo, just fall through, as the
- * "default" attributes are good enough for us.
- */
- return 0;
- }
-
if (is_gb_host_device(dev)) {
hd = to_gb_host_device(dev);
- } else if (is_gb_module(dev)) {
- module = to_gb_module(dev);
} else if (is_gb_interface(dev)) {
intf = to_gb_interface(dev);
} else if (is_gb_bundle(dev)) {
@@ -214,12 +203,6 @@ static int __init gb_init(void)
goto error_operation;
}
- retval = gb_endo_init();
- if (retval) {
- pr_err("gb_endo_init failed (%d)\n", retval);
- goto error_endo;
- }
-
retval = gb_control_protocol_init();
if (retval) {
pr_err("gb_control_protocol_init failed\n");
@@ -245,8 +228,6 @@ error_firmware:
error_svc:
gb_control_protocol_exit();
error_control:
- gb_endo_exit();
-error_endo:
gb_operation_exit();
error_operation:
gb_hd_exit();
@@ -264,7 +245,6 @@ static void __exit gb_exit(void)
gb_firmware_protocol_exit();
gb_svc_protocol_exit();
gb_control_protocol_exit();
- gb_endo_exit();
gb_operation_exit();
gb_hd_exit();
bus_unregister(&greybus_bus_type);