Skip to content

Commit

Permalink
net: asix: Move declaration of ax88172a_info to shared header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and David S. Miller committed Aug 13, 2013
1 parent cbeee8c commit 55d10a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions drivers/net/usb/asix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
2 changes: 0 additions & 2 deletions drivers/net/usb/asix_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55d10a1

Please sign in to comment.