projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
485fb2c
)
[NET]: sun happymeal, little pci cleanup
author
Jiri Slaby
<jirislaby@gmail.com>
Fri, 21 Jul 2006 21:51:02 +0000
(14:51 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 21 Jul 2006 21:51:02 +0000
(14:51 -0700)
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>
drivers/net/sunhme.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/sunhme.c
b/drivers/net/sunhme.c
index 8673fd4c08c7bfe76e5027a078d949a472fd0c78..c6f5bc3c042ffde958ba2841f1730d92ae325f82 100644
(file)
--- a/
drivers/net/sunhme.c
+++ b/
drivers/net/sunhme.c
@@
-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)