summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pci_socket.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-18 23:31:08 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-18 23:31:08 +0000
commite8f9b6396e79654ea5932f64131cafbe8caadfb1 (patch)
tree90cf8b3a2475a774369eda22247cab7874fd7bbf /drivers/pcmcia/pci_socket.c
parentd4c419dfaa853f5db107973976d4215ae648e976 (diff)
Merge with Linux 2.4.0-test5-pre2.
Diffstat (limited to 'drivers/pcmcia/pci_socket.c')
-rw-r--r--drivers/pcmcia/pci_socket.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pcmcia/pci_socket.c b/drivers/pcmcia/pci_socket.c
index 9cc901603..ce2fd652b 100644
--- a/drivers/pcmcia/pci_socket.c
+++ b/drivers/pcmcia/pci_socket.c
@@ -196,7 +196,7 @@ cardbus_probe (struct pci_dev *dev, const struct pci_device_id *id)
return 0;
}
}
- return -1;
+ return -ENODEV;
}
static void __devexit cardbus_remove (struct pci_dev *dev)
@@ -222,7 +222,7 @@ static void cardbus_resume (struct pci_dev *dev)
}
-static struct pci_device_id cardbus_table [] = { {
+static struct pci_device_id cardbus_table [] __devinitdata = { {
class: PCI_CLASS_BRIDGE_CARDBUS << 8,
class_mask: ~0,
@@ -232,6 +232,7 @@ static struct pci_device_id cardbus_table [] = { {
subdevice: PCI_ANY_ID,
}, { /* all zeroes */ }
};
+MODULE_DEVICE_TABLE(pci, cardbus_table);
static struct pci_driver pci_cardbus_driver = {
name: "cardbus",
@@ -242,12 +243,12 @@ static struct pci_driver pci_cardbus_driver = {
resume: cardbus_resume,
};
-static int __devinit pci_socket_init(void)
+static int __init pci_socket_init(void)
{
return pci_module_init (&pci_cardbus_driver);
}
-static void __devexit pci_socket_exit (void)
+static void __exit pci_socket_exit (void)
{
pci_unregister_driver (&pci_cardbus_driver);
}