aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/i2o/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/i2o/pci.c')
-rw-r--r--drivers/message/i2o/pci.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/message/i2o/pci.c b/drivers/message/i2o/pci.c
index 7190d5239b4f..0f9f3e1a2b6b 100644
--- a/drivers/message/i2o/pci.c
+++ b/drivers/message/i2o/pci.c
@@ -37,7 +37,7 @@
37#define OSM_DESCRIPTION "I2O-subsystem" 37#define OSM_DESCRIPTION "I2O-subsystem"
38 38
39/* PCI device id table for all I2O controllers */ 39/* PCI device id table for all I2O controllers */
40static struct pci_device_id __devinitdata i2o_pci_ids[] = { 40static struct pci_device_id i2o_pci_ids[] = {
41 {PCI_DEVICE_CLASS(PCI_CLASS_INTELLIGENT_I2O << 8, 0xffff00)}, 41 {PCI_DEVICE_CLASS(PCI_CLASS_INTELLIGENT_I2O << 8, 0xffff00)},
42 {PCI_DEVICE(PCI_VENDOR_ID_DPT, 0xa511)}, 42 {PCI_DEVICE(PCI_VENDOR_ID_DPT, 0xa511)},
43 {.vendor = PCI_VENDOR_ID_INTEL,.device = 0x1962, 43 {.vendor = PCI_VENDOR_ID_INTEL,.device = 0x1962,
@@ -84,7 +84,7 @@ static void i2o_pci_free(struct i2o_controller *c)
84 * 84 *
85 * Returns 0 on success or negative error code on failure. 85 * Returns 0 on success or negative error code on failure.
86 */ 86 */
87static int __devinit i2o_pci_alloc(struct i2o_controller *c) 87static int i2o_pci_alloc(struct i2o_controller *c)
88{ 88{
89 struct pci_dev *pdev = c->pdev; 89 struct pci_dev *pdev = c->pdev;
90 struct device *dev = &pdev->dev; 90 struct device *dev = &pdev->dev;
@@ -315,8 +315,7 @@ static void i2o_pci_irq_disable(struct i2o_controller *c)
315 * 315 *
316 * Returns 0 on success or negative error code on failure. 316 * Returns 0 on success or negative error code on failure.
317 */ 317 */
318static int __devinit i2o_pci_probe(struct pci_dev *pdev, 318static int i2o_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
319 const struct pci_device_id *id)
320{ 319{
321 struct i2o_controller *c; 320 struct i2o_controller *c;
322 int rc; 321 int rc;
@@ -453,7 +452,7 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev,
453 * Reset the I2O controller, disable interrupts and remove all allocated 452 * Reset the I2O controller, disable interrupts and remove all allocated
454 * resources. 453 * resources.
455 */ 454 */
456static void __devexit i2o_pci_remove(struct pci_dev *pdev) 455static void i2o_pci_remove(struct pci_dev *pdev)
457{ 456{
458 struct i2o_controller *c; 457 struct i2o_controller *c;
459 c = pci_get_drvdata(pdev); 458 c = pci_get_drvdata(pdev);
@@ -474,7 +473,7 @@ static struct pci_driver i2o_pci_driver = {
474 .name = "PCI_I2O", 473 .name = "PCI_I2O",
475 .id_table = i2o_pci_ids, 474 .id_table = i2o_pci_ids,
476 .probe = i2o_pci_probe, 475 .probe = i2o_pci_probe,
477 .remove = __devexit_p(i2o_pci_remove), 476 .remove = i2o_pci_remove,
478}; 477};
479 478
480/** 479/**