aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros/atl1e
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/atl1e
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/atl1e')
-rw-r--r--drivers/net/ethernet/atheros/atl1e/atl1e_main.c10
-rw-r--r--drivers/net/ethernet/atheros/atl1e/atl1e_param.c7
2 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
index e213da29e73d..dec5d2cfd386 100644
--- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
+++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c
@@ -534,7 +534,7 @@ static void atl1e_setup_pcicmd(struct pci_dev *pdev)
534 * @adapter: board private structure to initialize 534 * @adapter: board private structure to initialize
535 * 535 *
536 */ 536 */
537static int __devinit atl1e_alloc_queues(struct atl1e_adapter *adapter) 537static int atl1e_alloc_queues(struct atl1e_adapter *adapter)
538{ 538{
539 return 0; 539 return 0;
540} 540}
@@ -547,7 +547,7 @@ static int __devinit atl1e_alloc_queues(struct atl1e_adapter *adapter)
547 * Fields are initialized based on PCI device information and 547 * Fields are initialized based on PCI device information and
548 * OS network device settings (MTU size). 548 * OS network device settings (MTU size).
549 */ 549 */
550static int __devinit atl1e_sw_init(struct atl1e_adapter *adapter) 550static int atl1e_sw_init(struct atl1e_adapter *adapter)
551{ 551{
552 struct atl1e_hw *hw = &adapter->hw; 552 struct atl1e_hw *hw = &adapter->hw;
553 struct pci_dev *pdev = adapter->pdev; 553 struct pci_dev *pdev = adapter->pdev;
@@ -2235,7 +2235,7 @@ static int atl1e_init_netdev(struct net_device *netdev, struct pci_dev *pdev)
2235 * The OS initialization, configuring of the adapter private structure, 2235 * The OS initialization, configuring of the adapter private structure,
2236 * and a hardware reset occur. 2236 * and a hardware reset occur.
2237 */ 2237 */
2238static int __devinit atl1e_probe(struct pci_dev *pdev, 2238static int atl1e_probe(struct pci_dev *pdev,
2239 const struct pci_device_id *ent) 2239 const struct pci_device_id *ent)
2240{ 2240{
2241 struct net_device *netdev; 2241 struct net_device *netdev;
@@ -2387,7 +2387,7 @@ err_dma:
2387 * Hot-Plug event, or because the driver is going to be removed from 2387 * Hot-Plug event, or because the driver is going to be removed from
2388 * memory. 2388 * memory.
2389 */ 2389 */
2390static void __devexit atl1e_remove(struct pci_dev *pdev) 2390static void atl1e_remove(struct pci_dev *pdev)
2391{ 2391{
2392 struct net_device *netdev = pci_get_drvdata(pdev); 2392 struct net_device *netdev = pci_get_drvdata(pdev);
2393 struct atl1e_adapter *adapter = netdev_priv(netdev); 2393 struct atl1e_adapter *adapter = netdev_priv(netdev);
@@ -2499,7 +2499,7 @@ static struct pci_driver atl1e_driver = {
2499 .name = atl1e_driver_name, 2499 .name = atl1e_driver_name,
2500 .id_table = atl1e_pci_tbl, 2500 .id_table = atl1e_pci_tbl,
2501 .probe = atl1e_probe, 2501 .probe = atl1e_probe,
2502 .remove = __devexit_p(atl1e_remove), 2502 .remove = atl1e_remove,
2503 /* Power Management Hooks */ 2503 /* Power Management Hooks */
2504#ifdef CONFIG_PM 2504#ifdef CONFIG_PM
2505 .suspend = atl1e_suspend, 2505 .suspend = atl1e_suspend,
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_param.c b/drivers/net/ethernet/atheros/atl1e/atl1e_param.c
index b5086f1e637f..fa314282c9ad 100644
--- a/drivers/net/ethernet/atheros/atl1e/atl1e_param.c
+++ b/drivers/net/ethernet/atheros/atl1e/atl1e_param.c
@@ -40,7 +40,7 @@
40#define ATL1E_PARAM_INIT { [0 ... ATL1E_MAX_NIC] = OPTION_UNSET } 40#define ATL1E_PARAM_INIT { [0 ... ATL1E_MAX_NIC] = OPTION_UNSET }
41 41
42#define ATL1E_PARAM(x, desc) \ 42#define ATL1E_PARAM(x, desc) \
43 static int __devinitdata x[ATL1E_MAX_NIC + 1] = ATL1E_PARAM_INIT; \ 43 static int x[ATL1E_MAX_NIC + 1] = ATL1E_PARAM_INIT; \
44 static unsigned int num_##x; \ 44 static unsigned int num_##x; \
45 module_param_array_named(x, x, int, &num_##x, 0); \ 45 module_param_array_named(x, x, int, &num_##x, 0); \
46 MODULE_PARM_DESC(x, desc); 46 MODULE_PARM_DESC(x, desc);
@@ -116,7 +116,8 @@ struct atl1e_option {
116 } arg; 116 } arg;
117}; 117};
118 118
119static int __devinit atl1e_validate_option(int *value, struct atl1e_option *opt, struct atl1e_adapter *adapter) 119static int atl1e_validate_option(int *value, struct atl1e_option *opt,
120 struct atl1e_adapter *adapter)
120{ 121{
121 if (*value == OPTION_UNSET) { 122 if (*value == OPTION_UNSET) {
122 *value = opt->def; 123 *value = opt->def;
@@ -177,7 +178,7 @@ static int __devinit atl1e_validate_option(int *value, struct atl1e_option *opt,
177 * value exists, a default value is used. The final value is stored 178 * value exists, a default value is used. The final value is stored
178 * in a variable in the adapter structure. 179 * in a variable in the adapter structure.
179 */ 180 */
180void __devinit atl1e_check_options(struct atl1e_adapter *adapter) 181void atl1e_check_options(struct atl1e_adapter *adapter)
181{ 182{
182 int bd = adapter->bd_number; 183 int bd = adapter->bd_number;
183 184