summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/core.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-10-16 16:53:46 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2015-10-19 12:09:10 -0700
commitc69b98d15fff68e83396d800f43508a1dab4130a (patch)
treee6c40693e1934f14bc3783038abd8ff0f23af3b8 /drivers/staging/greybus/core.c
parent6ea462a4fc21b523dc139fdb920524f066633a35 (diff)
greybus: core: remove uevent handling for gb_connection
As we are going to be removing the struct device from gb_connection, there is no need to do anything for uevents for them. So just remove the code. It wasn't doing anything anyway, so no functionality is lost here at all. As is_gb_connection() is no longer used, that is also removed in this patch. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r--drivers/staging/greybus/core.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
index ea23aaff9465..5e1c75533d80 100644
--- a/drivers/staging/greybus/core.c
+++ b/drivers/staging/greybus/core.c
@@ -47,7 +47,6 @@ static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
struct gb_module *module = NULL;
struct gb_interface *intf = NULL;
struct gb_bundle *bundle = NULL;
- struct gb_connection *connection = NULL;
if (is_gb_endo(dev)) {
/*
@@ -64,21 +63,11 @@ static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
} else if (is_gb_bundle(dev)) {
bundle = to_gb_bundle(dev);
intf = bundle->intf;
- } else if (is_gb_connection(dev)) {
- connection = to_gb_connection(dev);
- bundle = connection->bundle;
- intf = bundle->intf;
} else {
dev_WARN(dev, "uevent for unknown greybus device \"type\"!\n");
return -EINVAL;
}
- if (connection) {
- // FIXME
- // add a uevent that can "load" a connection type
- return 0;
- }
-
if (bundle) {
// FIXME
// add a uevent that can "load" a bundle type