Commit ff76a3cc authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

chelsio: 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: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d289f864
...@@ -974,7 +974,7 @@ static const struct net_device_ops cxgb_netdev_ops = { ...@@ -974,7 +974,7 @@ static const struct net_device_ops cxgb_netdev_ops = {
#endif #endif
}; };
static int __devinit init_one(struct pci_dev *pdev, static int init_one(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
static int version_printed; static int version_printed;
...@@ -1332,7 +1332,7 @@ static inline void t1_sw_reset(struct pci_dev *pdev) ...@@ -1332,7 +1332,7 @@ static inline void t1_sw_reset(struct pci_dev *pdev)
pci_write_config_dword(pdev, A_PCICFG_PM_CSR, 0); pci_write_config_dword(pdev, A_PCICFG_PM_CSR, 0);
} }
static void __devexit remove_one(struct pci_dev *pdev) static void remove_one(struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
struct adapter *adapter = dev->ml_priv; struct adapter *adapter = dev->ml_priv;
...@@ -1361,7 +1361,7 @@ static struct pci_driver driver = { ...@@ -1361,7 +1361,7 @@ static struct pci_driver driver = {
.name = DRV_NAME, .name = DRV_NAME,
.id_table = t1_pci_tbl, .id_table = t1_pci_tbl,
.probe = init_one, .probe = init_one,
.remove = __devexit_p(remove_one), .remove = remove_one,
}; };
static int __init t1_init_module(void) static int __init t1_init_module(void)
......
...@@ -2071,7 +2071,7 @@ static void espibug_workaround(unsigned long data) ...@@ -2071,7 +2071,7 @@ static void espibug_workaround(unsigned long data)
/* /*
* Creates a t1_sge structure and returns suggested resource parameters. * Creates a t1_sge structure and returns suggested resource parameters.
*/ */
struct sge * __devinit t1_sge_create(struct adapter *adapter, struct sge *t1_sge_create(struct adapter *adapter,
struct sge_params *p) struct sge_params *p)
{ {
struct sge *sge = kzalloc(sizeof(*sge), GFP_KERNEL); struct sge *sge = kzalloc(sizeof(*sge), GFP_KERNEL);
......
...@@ -892,7 +892,7 @@ static void power_sequence_xpak(adapter_t* adapter) ...@@ -892,7 +892,7 @@ static void power_sequence_xpak(adapter_t* adapter)
} }
} }
int __devinit t1_get_board_rev(adapter_t *adapter, const struct board_info *bi, int t1_get_board_rev(adapter_t *adapter, const struct board_info *bi,
struct adapter_params *p) struct adapter_params *p)
{ {
p->chip_version = bi->chip_term; p->chip_version = bi->chip_term;
...@@ -992,7 +992,7 @@ int t1_init_hw_modules(adapter_t *adapter) ...@@ -992,7 +992,7 @@ int t1_init_hw_modules(adapter_t *adapter)
/* /*
* Determine a card's PCI mode. * Determine a card's PCI mode.
*/ */
static void __devinit get_pci_mode(adapter_t *adapter, struct chelsio_pci_params *p) static void get_pci_mode(adapter_t *adapter, struct chelsio_pci_params *p)
{ {
static const unsigned short speed_map[] = { 33, 66, 100, 133 }; static const unsigned short speed_map[] = { 33, 66, 100, 133 };
u32 pci_mode; u32 pci_mode;
...@@ -1028,7 +1028,7 @@ void t1_free_sw_modules(adapter_t *adapter) ...@@ -1028,7 +1028,7 @@ void t1_free_sw_modules(adapter_t *adapter)
t1_espi_destroy(adapter->espi); t1_espi_destroy(adapter->espi);
} }
static void __devinit init_link_config(struct link_config *lc, static void init_link_config(struct link_config *lc,
const struct board_info *bi) const struct board_info *bi)
{ {
lc->supported = bi->caps; lc->supported = bi->caps;
...@@ -1049,7 +1049,7 @@ static void __devinit init_link_config(struct link_config *lc, ...@@ -1049,7 +1049,7 @@ static void __devinit init_link_config(struct link_config *lc,
* Allocate and initialize the data structures that hold the SW state of * Allocate and initialize the data structures that hold the SW state of
* the Terminator HW modules. * the Terminator HW modules.
*/ */
int __devinit t1_init_sw_modules(adapter_t *adapter, int t1_init_sw_modules(adapter_t *adapter,
const struct board_info *bi) const struct board_info *bi)
{ {
unsigned int i; unsigned int i;
......
...@@ -55,7 +55,7 @@ void t1_tp_destroy(struct petp *tp) ...@@ -55,7 +55,7 @@ void t1_tp_destroy(struct petp *tp)
kfree(tp); kfree(tp);
} }
struct petp *__devinit t1_tp_create(adapter_t * adapter, struct tp_params *p) struct petp *t1_tp_create(adapter_t *adapter, struct tp_params *p)
{ {
struct petp *tp = kzalloc(sizeof(*tp), GFP_KERNEL); struct petp *tp = kzalloc(sizeof(*tp), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment