diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-21 03:50:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-24 17:55:49 -0400 |
commit | 0fb1e54ed17767521c18908d871f780f461ea1a6 (patch) | |
tree | f11090ab4e5271894d3dd4a664b95130f70192cc /drivers/net/atl1c | |
parent | 49b052215b3319b69de8e2df412d06eae41088b4 (diff) |
atl1c: make functions static
The up/down are only used in this file.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1c')
-rw-r--r-- | drivers/net/atl1c/atl1c.h | 2 | ||||
-rw-r--r-- | drivers/net/atl1c/atl1c_main.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/atl1c/atl1c.h b/drivers/net/atl1c/atl1c.h index ef4115b897bf..9ab58097fa2e 100644 --- a/drivers/net/atl1c/atl1c.h +++ b/drivers/net/atl1c/atl1c.h | |||
@@ -631,8 +631,6 @@ struct atl1c_adapter { | |||
631 | extern char atl1c_driver_name[]; | 631 | extern char atl1c_driver_name[]; |
632 | extern char atl1c_driver_version[]; | 632 | extern char atl1c_driver_version[]; |
633 | 633 | ||
634 | extern int atl1c_up(struct atl1c_adapter *adapter); | ||
635 | extern void atl1c_down(struct atl1c_adapter *adapter); | ||
636 | extern void atl1c_reinit_locked(struct atl1c_adapter *adapter); | 634 | extern void atl1c_reinit_locked(struct atl1c_adapter *adapter); |
637 | extern s32 atl1c_reset_hw(struct atl1c_hw *hw); | 635 | extern s32 atl1c_reset_hw(struct atl1c_hw *hw); |
638 | extern void atl1c_set_ethtool_ops(struct net_device *netdev); | 636 | extern void atl1c_set_ethtool_ops(struct net_device *netdev); |
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c index 99ffcf667d1f..09b099bfab2b 100644 --- a/drivers/net/atl1c/atl1c_main.c +++ b/drivers/net/atl1c/atl1c_main.c | |||
@@ -66,6 +66,8 @@ static void atl1c_set_aspm(struct atl1c_hw *hw, bool linkup); | |||
66 | static void atl1c_setup_mac_ctrl(struct atl1c_adapter *adapter); | 66 | static void atl1c_setup_mac_ctrl(struct atl1c_adapter *adapter); |
67 | static void atl1c_clean_rx_irq(struct atl1c_adapter *adapter, u8 que, | 67 | static void atl1c_clean_rx_irq(struct atl1c_adapter *adapter, u8 que, |
68 | int *work_done, int work_to_do); | 68 | int *work_done, int work_to_do); |
69 | static int atl1c_up(struct atl1c_adapter *adapter); | ||
70 | static void atl1c_down(struct atl1c_adapter *adapter); | ||
69 | 71 | ||
70 | static const u16 atl1c_pay_load_size[] = { | 72 | static const u16 atl1c_pay_load_size[] = { |
71 | 128, 256, 512, 1024, 2048, 4096, | 73 | 128, 256, 512, 1024, 2048, 4096, |
@@ -2309,7 +2311,7 @@ static int atl1c_request_irq(struct atl1c_adapter *adapter) | |||
2309 | return err; | 2311 | return err; |
2310 | } | 2312 | } |
2311 | 2313 | ||
2312 | int atl1c_up(struct atl1c_adapter *adapter) | 2314 | static int atl1c_up(struct atl1c_adapter *adapter) |
2313 | { | 2315 | { |
2314 | struct net_device *netdev = adapter->netdev; | 2316 | struct net_device *netdev = adapter->netdev; |
2315 | int num; | 2317 | int num; |
@@ -2351,7 +2353,7 @@ err_alloc_rx: | |||
2351 | return err; | 2353 | return err; |
2352 | } | 2354 | } |
2353 | 2355 | ||
2354 | void atl1c_down(struct atl1c_adapter *adapter) | 2356 | static void atl1c_down(struct atl1c_adapter *adapter) |
2355 | { | 2357 | { |
2356 | struct net_device *netdev = adapter->netdev; | 2358 | struct net_device *netdev = adapter->netdev; |
2357 | 2359 | ||