summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/bundle.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-31 17:21:08 +0530
committerJohan Hovold <johan@hovoldconsulting.com>2015-09-03 14:35:42 +0200
commitad14b9e9ec4973416a911a5d3c59caedc048a279 (patch)
tree6b3787a5d0c2faf626fc4f32430b1359a7ff52c3 /drivers/staging/greybus/bundle.c
parent505f16cc05a4ddeafe5efe33645123fed194d811 (diff)
downloadop-kernel-dev-ad14b9e9ec4973416a911a5d3c59caedc048a279.zip
op-kernel-dev-ad14b9e9ec4973416a911a5d3c59caedc048a279.tar.gz
greybus: bundle: kill unnecessary forward declaration of routine
Move the function to an earlier place, to kill the unnecessary forward declaration. Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Diffstat (limited to 'drivers/staging/greybus/bundle.c')
-rw-r--r--drivers/staging/greybus/bundle.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c
index 694bcce..459c62a 100644
--- a/drivers/staging/greybus/bundle.c
+++ b/drivers/staging/greybus/bundle.c
@@ -9,8 +9,6 @@
#include "greybus.h"
-static void gb_bundle_connections_exit(struct gb_bundle *bundle);
-
static ssize_t class_show(struct device *dev, struct device_attribute *attr,
char *buf)
{
@@ -197,6 +195,18 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id,
return bundle;
}
+static void gb_bundle_connections_exit(struct gb_bundle *bundle)
+{
+ struct gb_connection *connection;
+ struct gb_connection *next;
+
+ list_for_each_entry_safe(connection, next, &bundle->connections,
+ bundle_links) {
+ gb_connection_exit(connection);
+ gb_connection_destroy(connection);
+ }
+}
+
/*
* Tear down a previously set up bundle.
*/
@@ -224,15 +234,3 @@ found:
return bundle;
}
-
-static void gb_bundle_connections_exit(struct gb_bundle *bundle)
-{
- struct gb_connection *connection;
- struct gb_connection *next;
-
- list_for_each_entry_safe(connection, next, &bundle->connections,
- bundle_links) {
- gb_connection_exit(connection);
- gb_connection_destroy(connection);
- }
-}
OpenPOWER on IntegriCloud