diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-21 03:50:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-24 17:55:49 -0400 |
commit | ff2d8d6c1921242cd119395173ef46e2629bcdb2 (patch) | |
tree | 443c3abe209ecc3413315200a41cc7453a8334d7 /drivers/net/atlx/atl1.c | |
parent | 0fb1e54ed17767521c18908d871f780f461ea1a6 (diff) |
atlx: make local functions/data static
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atlx/atl1.c')
-rw-r--r-- | drivers/net/atlx/atl1.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index dbd27b8e66bd..43579b3b24ac 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -91,6 +91,8 @@ MODULE_VERSION(ATLX_DRIVER_VERSION); | |||
91 | /* Temporary hack for merging atl1 and atl2 */ | 91 | /* Temporary hack for merging atl1 and atl2 */ |
92 | #include "atlx.c" | 92 | #include "atlx.c" |
93 | 93 | ||
94 | static const struct ethtool_ops atl1_ethtool_ops; | ||
95 | |||
94 | /* | 96 | /* |
95 | * This is the only thing that needs to be changed to adjust the | 97 | * This is the only thing that needs to be changed to adjust the |
96 | * maximum number of ports that the driver can manage. | 98 | * maximum number of ports that the driver can manage. |
@@ -353,7 +355,7 @@ static bool atl1_read_eeprom(struct atl1_hw *hw, u32 offset, u32 *p_value) | |||
353 | * hw - Struct containing variables accessed by shared code | 355 | * hw - Struct containing variables accessed by shared code |
354 | * reg_addr - address of the PHY register to read | 356 | * reg_addr - address of the PHY register to read |
355 | */ | 357 | */ |
356 | s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data) | 358 | static s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data) |
357 | { | 359 | { |
358 | u32 val; | 360 | u32 val; |
359 | int i; | 361 | int i; |
@@ -553,7 +555,7 @@ static s32 atl1_read_mac_addr(struct atl1_hw *hw) | |||
553 | * 1. calcu 32bit CRC for multicast address | 555 | * 1. calcu 32bit CRC for multicast address |
554 | * 2. reverse crc with MSB to LSB | 556 | * 2. reverse crc with MSB to LSB |
555 | */ | 557 | */ |
556 | u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr) | 558 | static u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr) |
557 | { | 559 | { |
558 | u32 crc32, value = 0; | 560 | u32 crc32, value = 0; |
559 | int i; | 561 | int i; |
@@ -570,7 +572,7 @@ u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr) | |||
570 | * hw - Struct containing variables accessed by shared code | 572 | * hw - Struct containing variables accessed by shared code |
571 | * hash_value - Multicast address hash value | 573 | * hash_value - Multicast address hash value |
572 | */ | 574 | */ |
573 | void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) | 575 | static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) |
574 | { | 576 | { |
575 | u32 hash_bit, hash_reg; | 577 | u32 hash_bit, hash_reg; |
576 | u32 mta; | 578 | u32 mta; |
@@ -914,7 +916,7 @@ static s32 atl1_get_speed_and_duplex(struct atl1_hw *hw, u16 *speed, u16 *duplex | |||
914 | return 0; | 916 | return 0; |
915 | } | 917 | } |
916 | 918 | ||
917 | void atl1_set_mac_addr(struct atl1_hw *hw) | 919 | static void atl1_set_mac_addr(struct atl1_hw *hw) |
918 | { | 920 | { |
919 | u32 value; | 921 | u32 value; |
920 | /* | 922 | /* |
@@ -3658,7 +3660,7 @@ static int atl1_nway_reset(struct net_device *netdev) | |||
3658 | return 0; | 3660 | return 0; |
3659 | } | 3661 | } |
3660 | 3662 | ||
3661 | const struct ethtool_ops atl1_ethtool_ops = { | 3663 | static const struct ethtool_ops atl1_ethtool_ops = { |
3662 | .get_settings = atl1_get_settings, | 3664 | .get_settings = atl1_get_settings, |
3663 | .set_settings = atl1_set_settings, | 3665 | .set_settings = atl1_set_settings, |
3664 | .get_drvinfo = atl1_get_drvinfo, | 3666 | .get_drvinfo = atl1_get_drvinfo, |