aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros/atlx
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-03 09:23:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 14:16:54 -0500
commit093d369d4e8e8b6361317edd83935bdf8a0c83de (patch)
treef9104ba926ad0b4bed3c31a48f91d57160e0ab85 /drivers/net/ethernet/atheros/atlx
parent97c71ad4cef8bf9af36d2c495a971e149a9b77c8 (diff)
net/atheros: remove __dev* attributes
CONFIG_HOTPLUG is going away as an option. As result the __dev* markings will be going away. Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Jay Cliburn <jcliburn@gmail.com> Cc: Chris Snook <chris.snook@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/atheros/atlx')
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl1.c14
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl2.c16
2 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c
index 7bae2ad7a7c0..3e7327ec3901 100644
--- a/drivers/net/ethernet/atheros/atlx/atl1.c
+++ b/drivers/net/ethernet/atheros/atlx/atl1.c
@@ -113,7 +113,7 @@ static const struct ethtool_ops atl1_ethtool_ops;
113 * 113 *
114 * Default Value: 100 (200us) 114 * Default Value: 100 (200us)
115 */ 115 */
116static int __devinitdata int_mod_timer[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT; 116static int int_mod_timer[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT;
117static unsigned int num_int_mod_timer; 117static unsigned int num_int_mod_timer;
118module_param_array_named(int_mod_timer, int_mod_timer, int, 118module_param_array_named(int_mod_timer, int_mod_timer, int,
119 &num_int_mod_timer, 0); 119 &num_int_mod_timer, 0);
@@ -143,7 +143,7 @@ struct atl1_option {
143 } arg; 143 } arg;
144}; 144};
145 145
146static int __devinit atl1_validate_option(int *value, struct atl1_option *opt, 146static int atl1_validate_option(int *value, struct atl1_option *opt,
147 struct pci_dev *pdev) 147 struct pci_dev *pdev)
148{ 148{
149 if (*value == OPTION_UNSET) { 149 if (*value == OPTION_UNSET) {
@@ -204,7 +204,7 @@ static int __devinit atl1_validate_option(int *value, struct atl1_option *opt,
204 * value exists, a default value is used. The final value is stored 204 * value exists, a default value is used. The final value is stored
205 * in a variable in the adapter structure. 205 * in a variable in the adapter structure.
206 */ 206 */
207static void __devinit atl1_check_options(struct atl1_adapter *adapter) 207static void atl1_check_options(struct atl1_adapter *adapter)
208{ 208{
209 struct pci_dev *pdev = adapter->pdev; 209 struct pci_dev *pdev = adapter->pdev;
210 int bd = adapter->bd_number; 210 int bd = adapter->bd_number;
@@ -945,7 +945,7 @@ static void atl1_set_mac_addr(struct atl1_hw *hw)
945 * Fields are initialized based on PCI device information and 945 * Fields are initialized based on PCI device information and
946 * OS network device settings (MTU size). 946 * OS network device settings (MTU size).
947 */ 947 */
948static int __devinit atl1_sw_init(struct atl1_adapter *adapter) 948static int atl1_sw_init(struct atl1_adapter *adapter)
949{ 949{
950 struct atl1_hw *hw = &adapter->hw; 950 struct atl1_hw *hw = &adapter->hw;
951 struct net_device *netdev = adapter->netdev; 951 struct net_device *netdev = adapter->netdev;
@@ -2934,7 +2934,7 @@ static const struct net_device_ops atl1_netdev_ops = {
2934 * The OS initialization, configuring of the adapter private structure, 2934 * The OS initialization, configuring of the adapter private structure,
2935 * and a hardware reset occur. 2935 * and a hardware reset occur.
2936 */ 2936 */
2937static int __devinit atl1_probe(struct pci_dev *pdev, 2937static int atl1_probe(struct pci_dev *pdev,
2938 const struct pci_device_id *ent) 2938 const struct pci_device_id *ent)
2939{ 2939{
2940 struct net_device *netdev; 2940 struct net_device *netdev;
@@ -3113,7 +3113,7 @@ err_request_regions:
3113 * Hot-Plug event, or because the driver is going to be removed from 3113 * Hot-Plug event, or because the driver is going to be removed from
3114 * memory. 3114 * memory.
3115 */ 3115 */
3116static void __devexit atl1_remove(struct pci_dev *pdev) 3116static void atl1_remove(struct pci_dev *pdev)
3117{ 3117{
3118 struct net_device *netdev = pci_get_drvdata(pdev); 3118 struct net_device *netdev = pci_get_drvdata(pdev);
3119 struct atl1_adapter *adapter; 3119 struct atl1_adapter *adapter;
@@ -3146,7 +3146,7 @@ static struct pci_driver atl1_driver = {
3146 .name = ATLX_DRIVER_NAME, 3146 .name = ATLX_DRIVER_NAME,
3147 .id_table = atl1_pci_tbl, 3147 .id_table = atl1_pci_tbl,
3148 .probe = atl1_probe, 3148 .probe = atl1_probe,
3149 .remove = __devexit_p(atl1_remove), 3149 .remove = atl1_remove,
3150 .shutdown = atl1_shutdown, 3150 .shutdown = atl1_shutdown,
3151 .driver.pm = ATL1_PM_OPS, 3151 .driver.pm = ATL1_PM_OPS,
3152}; 3152};
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c
index 623dd8635c46..7dc9766bb5ba 100644
--- a/drivers/net/ethernet/atheros/atlx/atl2.c
+++ b/drivers/net/ethernet/atheros/atlx/atl2.c
@@ -83,7 +83,7 @@ static void atl2_check_options(struct atl2_adapter *adapter);
83 * Fields are initialized based on PCI device information and 83 * Fields are initialized based on PCI device information and
84 * OS network device settings (MTU size). 84 * OS network device settings (MTU size).
85 */ 85 */
86static int __devinit atl2_sw_init(struct atl2_adapter *adapter) 86static int atl2_sw_init(struct atl2_adapter *adapter)
87{ 87{
88 struct atl2_hw *hw = &adapter->hw; 88 struct atl2_hw *hw = &adapter->hw;
89 struct pci_dev *pdev = adapter->pdev; 89 struct pci_dev *pdev = adapter->pdev;
@@ -1338,7 +1338,7 @@ static const struct net_device_ops atl2_netdev_ops = {
1338 * The OS initialization, configuring of the adapter private structure, 1338 * The OS initialization, configuring of the adapter private structure,
1339 * and a hardware reset occur. 1339 * and a hardware reset occur.
1340 */ 1340 */
1341static int __devinit atl2_probe(struct pci_dev *pdev, 1341static int atl2_probe(struct pci_dev *pdev,
1342 const struct pci_device_id *ent) 1342 const struct pci_device_id *ent)
1343{ 1343{
1344 struct net_device *netdev; 1344 struct net_device *netdev;
@@ -1498,7 +1498,7 @@ err_dma:
1498 */ 1498 */
1499/* FIXME: write the original MAC address back in case it was changed from a 1499/* FIXME: write the original MAC address back in case it was changed from a
1500 * BIOS-set value, as in atl1 -- CHS */ 1500 * BIOS-set value, as in atl1 -- CHS */
1501static void __devexit atl2_remove(struct pci_dev *pdev) 1501static void atl2_remove(struct pci_dev *pdev)
1502{ 1502{
1503 struct net_device *netdev = pci_get_drvdata(pdev); 1503 struct net_device *netdev = pci_get_drvdata(pdev);
1504 struct atl2_adapter *adapter = netdev_priv(netdev); 1504 struct atl2_adapter *adapter = netdev_priv(netdev);
@@ -1705,7 +1705,7 @@ static struct pci_driver atl2_driver = {
1705 .name = atl2_driver_name, 1705 .name = atl2_driver_name,
1706 .id_table = atl2_pci_tbl, 1706 .id_table = atl2_pci_tbl,
1707 .probe = atl2_probe, 1707 .probe = atl2_probe,
1708 .remove = __devexit_p(atl2_remove), 1708 .remove = atl2_remove,
1709 /* Power Management Hooks */ 1709 /* Power Management Hooks */
1710 .suspend = atl2_suspend, 1710 .suspend = atl2_suspend,
1711#ifdef CONFIG_PM 1711#ifdef CONFIG_PM
@@ -2845,12 +2845,12 @@ static void atl2_force_ps(struct atl2_hw *hw)
2845 */ 2845 */
2846 2846
2847#define ATL2_PARAM(X, desc) \ 2847#define ATL2_PARAM(X, desc) \
2848 static const int __devinitconst X[ATL2_MAX_NIC + 1] = ATL2_PARAM_INIT; \ 2848 static const int X[ATL2_MAX_NIC + 1] = ATL2_PARAM_INIT; \
2849 MODULE_PARM(X, "1-" __MODULE_STRING(ATL2_MAX_NIC) "i"); \ 2849 MODULE_PARM(X, "1-" __MODULE_STRING(ATL2_MAX_NIC) "i"); \
2850 MODULE_PARM_DESC(X, desc); 2850 MODULE_PARM_DESC(X, desc);
2851#else 2851#else
2852#define ATL2_PARAM(X, desc) \ 2852#define ATL2_PARAM(X, desc) \
2853 static int __devinitdata X[ATL2_MAX_NIC+1] = ATL2_PARAM_INIT; \ 2853 static int X[ATL2_MAX_NIC+1] = ATL2_PARAM_INIT; \
2854 static unsigned int num_##X; \ 2854 static unsigned int num_##X; \
2855 module_param_array_named(X, X, int, &num_##X, 0); \ 2855 module_param_array_named(X, X, int, &num_##X, 0); \
2856 MODULE_PARM_DESC(X, desc); 2856 MODULE_PARM_DESC(X, desc);
@@ -2934,7 +2934,7 @@ struct atl2_option {
2934 } arg; 2934 } arg;
2935}; 2935};
2936 2936
2937static int __devinit atl2_validate_option(int *value, struct atl2_option *opt) 2937static int atl2_validate_option(int *value, struct atl2_option *opt)
2938{ 2938{
2939 int i; 2939 int i;
2940 struct atl2_opt_list *ent; 2940 struct atl2_opt_list *ent;
@@ -2992,7 +2992,7 @@ static int __devinit atl2_validate_option(int *value, struct atl2_option *opt)
2992 * value exists, a default value is used. The final value is stored 2992 * value exists, a default value is used. The final value is stored
2993 * in a variable in the adapter structure. 2993 * in a variable in the adapter structure.
2994 */ 2994 */
2995static void __devinit atl2_check_options(struct atl2_adapter *adapter) 2995static void atl2_check_options(struct atl2_adapter *adapter)
2996{ 2996{
2997 int val; 2997 int val;
2998 struct atl2_option opt; 2998 struct atl2_option opt;