Commit a0ee7c70 authored by Jiri Slaby's avatar Jiri Slaby Committed by David S. Miller

[NET]: sun happymeal, little pci cleanup

Use pci_register_driver instead of pci_module_init. Use PCI_DEVICE macro.
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 485fb2c9
...@@ -3255,12 +3255,7 @@ static void __devexit happy_meal_pci_remove(struct pci_dev *pdev) ...@@ -3255,12 +3255,7 @@ static void __devexit happy_meal_pci_remove(struct pci_dev *pdev)
} }
static struct pci_device_id happymeal_pci_ids[] = { static struct pci_device_id happymeal_pci_ids[] = {
{ { PCI_DEVICE(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_HAPPYMEAL) },
.vendor = PCI_VENDOR_ID_SUN,
.device = PCI_DEVICE_ID_SUN_HAPPYMEAL,
.subvendor = PCI_ANY_ID,
.subdevice = PCI_ANY_ID,
},
{ } /* Terminating entry */ { } /* Terminating entry */
}; };
...@@ -3275,7 +3270,7 @@ static struct pci_driver hme_pci_driver = { ...@@ -3275,7 +3270,7 @@ static struct pci_driver hme_pci_driver = {
static int __init happy_meal_pci_init(void) static int __init happy_meal_pci_init(void)
{ {
return pci_module_init(&hme_pci_driver); return pci_register_driver(&hme_pci_driver);
} }
static void happy_meal_pci_exit(void) static void happy_meal_pci_exit(void)
......
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