net: asix: Move declaration of ax88172a_info to shared header
authorMark Brown <broonie@linaro.org>
Fri, 9 Aug 2013 17:31:22 +0000 (18:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Aug 2013 21:13:52 +0000 (14:13 -0700)
Ensure that the definition of ax88172a_info matches the declaration seen
by users and silence sparse warnings about symbols without declarations
in the global namespace by moving the declaration into the shared header
asix.h.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.h
drivers/net/usb/asix_devices.c

index 346c032aa7955ba7ff09ca2a698cc1374e2ae630..bdaa12d07a127fae11a6209986d0473c32644f27 100644 (file)
@@ -178,6 +178,8 @@ struct asix_common_private {
        struct asix_rx_fixup_info rx_fixup_info;
 };
 
+extern const struct driver_info ax88172a_info;
+
 /* ASIX specific flags */
 #define FLAG_EEPROM_MAC                (1UL << 0)  /* init device MAC from eeprom */
 
index b96ad4f15b8ae0856fc52a7b53efeb08d6c42815..386a3df53678a23761308938221f4aa79b520538 100644 (file)
@@ -946,8 +946,6 @@ static const struct driver_info hg20f9_info = {
        .data = FLAG_EEPROM_MAC,
 };
 
-extern const struct driver_info ax88172a_info;
-
 static const struct usb_device_id      products [] = {
 {
        // Linksys USB200M