mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-05 18:59:58 +00:00
[NET]: sun happymeal, little pci cleanup
Use pci_register_driver instead of pci_module_init. Use PCI_DEVICE macro. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
485fb2c998
commit
a0ee7c70b2
1 changed files with 2 additions and 7 deletions
|
@ -3255,12 +3255,7 @@ static void __devexit happy_meal_pci_remove(struct pci_dev *pdev)
|
|||
}
|
||||
|
||||
static struct pci_device_id happymeal_pci_ids[] = {
|
||||
{
|
||||
.vendor = PCI_VENDOR_ID_SUN,
|
||||
.device = PCI_DEVICE_ID_SUN_HAPPYMEAL,
|
||||
.subvendor = PCI_ANY_ID,
|
||||
.subdevice = PCI_ANY_ID,
|
||||
},
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_SUN, PCI_DEVICE_ID_SUN_HAPPYMEAL) },
|
||||
{ } /* Terminating entry */
|
||||
};
|
||||
|
||||
|
@ -3275,7 +3270,7 @@ static struct pci_driver hme_pci_driver = {
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue