Drivers: atm: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -527,8 +527,7 @@ fore200e_pca_reset(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_pca_map(struct fore200e* fore200e)
|
||||
static int fore200e_pca_map(struct fore200e* fore200e)
|
||||
{
|
||||
DPRINTK(2, "device %s being mapped in memory\n", fore200e->name);
|
||||
|
||||
@@ -561,8 +560,7 @@ fore200e_pca_unmap(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_pca_configure(struct fore200e* fore200e)
|
||||
static int fore200e_pca_configure(struct fore200e *fore200e)
|
||||
{
|
||||
struct pci_dev* pci_dev = (struct pci_dev*)fore200e->bus_dev;
|
||||
u8 master_ctrl, latency;
|
||||
@@ -2028,8 +2026,7 @@ fore200e_change_qos(struct atm_vcc* vcc,struct atm_qos* qos, int flags)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_irq_request(struct fore200e* fore200e)
|
||||
static int fore200e_irq_request(struct fore200e *fore200e)
|
||||
{
|
||||
if (request_irq(fore200e->irq, fore200e_interrupt, IRQF_SHARED, fore200e->name, fore200e->atm_dev) < 0) {
|
||||
|
||||
@@ -2051,8 +2048,7 @@ fore200e_irq_request(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_get_esi(struct fore200e* fore200e)
|
||||
static int fore200e_get_esi(struct fore200e *fore200e)
|
||||
{
|
||||
struct prom_data* prom = kzalloc(sizeof(struct prom_data), GFP_KERNEL | GFP_DMA);
|
||||
int ok, i;
|
||||
@@ -2081,8 +2077,7 @@ fore200e_get_esi(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_alloc_rx_buf(struct fore200e* fore200e)
|
||||
static int fore200e_alloc_rx_buf(struct fore200e *fore200e)
|
||||
{
|
||||
int scheme, magn, nbr, size, i;
|
||||
|
||||
@@ -2146,8 +2141,7 @@ fore200e_alloc_rx_buf(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_init_bs_queue(struct fore200e* fore200e)
|
||||
static int fore200e_init_bs_queue(struct fore200e *fore200e)
|
||||
{
|
||||
int scheme, magn, i;
|
||||
|
||||
@@ -2209,8 +2203,7 @@ fore200e_init_bs_queue(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_init_rx_queue(struct fore200e* fore200e)
|
||||
static int fore200e_init_rx_queue(struct fore200e *fore200e)
|
||||
{
|
||||
struct host_rxq* rxq = &fore200e->host_rxq;
|
||||
struct cp_rxq_entry __iomem * cp_entry;
|
||||
@@ -2269,8 +2262,7 @@ fore200e_init_rx_queue(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_init_tx_queue(struct fore200e* fore200e)
|
||||
static int fore200e_init_tx_queue(struct fore200e *fore200e)
|
||||
{
|
||||
struct host_txq* txq = &fore200e->host_txq;
|
||||
struct cp_txq_entry __iomem * cp_entry;
|
||||
@@ -2332,8 +2324,7 @@ fore200e_init_tx_queue(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_init_cmd_queue(struct fore200e* fore200e)
|
||||
static int fore200e_init_cmd_queue(struct fore200e *fore200e)
|
||||
{
|
||||
struct host_cmdq* cmdq = &fore200e->host_cmdq;
|
||||
struct cp_cmdq_entry __iomem * cp_entry;
|
||||
@@ -2374,10 +2365,10 @@ fore200e_init_cmd_queue(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static void __devinit
|
||||
fore200e_param_bs_queue(struct fore200e* fore200e,
|
||||
enum buffer_scheme scheme, enum buffer_magn magn,
|
||||
int queue_length, int pool_size, int supply_blksize)
|
||||
static void fore200e_param_bs_queue(struct fore200e *fore200e,
|
||||
enum buffer_scheme scheme,
|
||||
enum buffer_magn magn, int queue_length,
|
||||
int pool_size, int supply_blksize)
|
||||
{
|
||||
struct bs_spec __iomem * bs_spec = &fore200e->cp_queues->init.bs_spec[ scheme ][ magn ];
|
||||
|
||||
@@ -2388,8 +2379,7 @@ fore200e_param_bs_queue(struct fore200e* fore200e,
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_initialize(struct fore200e* fore200e)
|
||||
static int fore200e_initialize(struct fore200e *fore200e)
|
||||
{
|
||||
struct cp_queues __iomem * cpq;
|
||||
int ok, scheme, magn;
|
||||
@@ -2440,8 +2430,7 @@ fore200e_initialize(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static void __devinit
|
||||
fore200e_monitor_putc(struct fore200e* fore200e, char c)
|
||||
static void fore200e_monitor_putc(struct fore200e *fore200e, char c)
|
||||
{
|
||||
struct cp_monitor __iomem * monitor = fore200e->cp_monitor;
|
||||
|
||||
@@ -2452,8 +2441,7 @@ fore200e_monitor_putc(struct fore200e* fore200e, char c)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_monitor_getc(struct fore200e* fore200e)
|
||||
static int fore200e_monitor_getc(struct fore200e *fore200e)
|
||||
{
|
||||
struct cp_monitor __iomem * monitor = fore200e->cp_monitor;
|
||||
unsigned long timeout = jiffies + msecs_to_jiffies(50);
|
||||
@@ -2477,8 +2465,7 @@ fore200e_monitor_getc(struct fore200e* fore200e)
|
||||
}
|
||||
|
||||
|
||||
static void __devinit
|
||||
fore200e_monitor_puts(struct fore200e* fore200e, char* str)
|
||||
static void fore200e_monitor_puts(struct fore200e *fore200e, char *str)
|
||||
{
|
||||
while (*str) {
|
||||
|
||||
@@ -2497,8 +2484,7 @@ fore200e_monitor_puts(struct fore200e* fore200e, char* str)
|
||||
#define FW_EXT "_ecd.bin2"
|
||||
#endif
|
||||
|
||||
static int __devinit
|
||||
fore200e_load_and_start_fw(struct fore200e* fore200e)
|
||||
static int fore200e_load_and_start_fw(struct fore200e *fore200e)
|
||||
{
|
||||
const struct firmware *firmware;
|
||||
struct device *device;
|
||||
@@ -2566,8 +2552,7 @@ release:
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_register(struct fore200e* fore200e, struct device *parent)
|
||||
static int fore200e_register(struct fore200e *fore200e, struct device *parent)
|
||||
{
|
||||
struct atm_dev* atm_dev;
|
||||
|
||||
@@ -2593,8 +2578,7 @@ fore200e_register(struct fore200e* fore200e, struct device *parent)
|
||||
}
|
||||
|
||||
|
||||
static int __devinit
|
||||
fore200e_init(struct fore200e* fore200e, struct device *parent)
|
||||
static int fore200e_init(struct fore200e *fore200e, struct device *parent)
|
||||
{
|
||||
if (fore200e_register(fore200e, parent) < 0)
|
||||
return -ENODEV;
|
||||
@@ -2644,7 +2628,7 @@ fore200e_init(struct fore200e* fore200e, struct device *parent)
|
||||
|
||||
#ifdef CONFIG_SBUS
|
||||
static const struct of_device_id fore200e_sba_match[];
|
||||
static int __devinit fore200e_sba_probe(struct platform_device *op)
|
||||
static int fore200e_sba_probe(struct platform_device *op)
|
||||
{
|
||||
const struct of_device_id *match;
|
||||
const struct fore200e_bus *bus;
|
||||
@@ -2681,7 +2665,7 @@ static int __devinit fore200e_sba_probe(struct platform_device *op)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit fore200e_sba_remove(struct platform_device *op)
|
||||
static int fore200e_sba_remove(struct platform_device *op)
|
||||
{
|
||||
struct fore200e *fore200e = dev_get_drvdata(&op->dev);
|
||||
|
||||
@@ -2707,13 +2691,13 @@ static struct platform_driver fore200e_sba_driver = {
|
||||
.of_match_table = fore200e_sba_match,
|
||||
},
|
||||
.probe = fore200e_sba_probe,
|
||||
.remove = __devexit_p(fore200e_sba_remove),
|
||||
.remove = fore200e_sba_remove,
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
static int __devinit
|
||||
fore200e_pca_detect(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent)
|
||||
static int fore200e_pca_detect(struct pci_dev *pci_dev,
|
||||
const struct pci_device_id *pci_ent)
|
||||
{
|
||||
const struct fore200e_bus* bus = (struct fore200e_bus*) pci_ent->driver_data;
|
||||
struct fore200e* fore200e;
|
||||
@@ -2766,7 +2750,7 @@ out_disable:
|
||||
}
|
||||
|
||||
|
||||
static void __devexit fore200e_pca_remove_one(struct pci_dev *pci_dev)
|
||||
static void fore200e_pca_remove_one(struct pci_dev *pci_dev)
|
||||
{
|
||||
struct fore200e *fore200e;
|
||||
|
||||
@@ -2789,7 +2773,7 @@ MODULE_DEVICE_TABLE(pci, fore200e_pca_tbl);
|
||||
static struct pci_driver fore200e_pca_driver = {
|
||||
.name = "fore_200e",
|
||||
.probe = fore200e_pca_detect,
|
||||
.remove = __devexit_p(fore200e_pca_remove_one),
|
||||
.remove = fore200e_pca_remove_one,
|
||||
.id_table = fore200e_pca_tbl,
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user