#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)
{
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.
*/
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);
- }
-}