]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: endo: move endo id map declaration to endo.h
authorPhong Tran <tranmanphong@gmail.com>
Tue, 9 Jun 2015 13:28:17 +0000 (20:28 +0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 9 Jun 2015 20:35:47 +0000 (13:35 -0700)
There is a sparse warning. The endo id map is also
used in endo.c. Should define in endo.h

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/core.c
drivers/staging/greybus/endo.h

index 23e0359d18c228b255cc4f00871cde89fb6b1ee7..a4d7057a061cc5d9af98275d441e1cdf13975f15 100644 (file)
@@ -18,8 +18,6 @@
 
 #include "greybus.h"
 
-extern struct ida greybus_endo_id_map;
-
 /* Allow greybus to be disabled at boot if needed */
 static bool nogreybus;
 #ifdef MODULE
index 2547b63e59bb1abadfc500aa133db3f3c2fa0539..63dbadf5589fb1d2cfa4ddee4bdf1a40d395fb64 100644 (file)
@@ -46,6 +46,7 @@ struct gb_endo {
 };
 #define to_gb_endo(d) container_of(d, struct gb_endo, dev)
 
+extern struct ida greybus_endo_id_map;
 
 /* Greybus "private" definitions */
 struct greybus_host_device;