summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-02-11 22:40:17 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-18 14:25:51 +0100
commitb6f6b7853a23d860eebc3b28d7cbeb853b953236 (patch)
tree1afc613ee5c2ccef37baad6979ba7155e55ab8b6 /drivers/usb
parent3dd36d0375782a61c536e834b22278ab78fed1ca (diff)
downloadbarebox-b6f6b7853a23d860eebc3b28d7cbeb853b953236.tar.gz
barebox-b6f6b7853a23d860eebc3b28d7cbeb853b953236.tar.xz
drivers: Make use of device_pci_driver()
Replace all of the generic PCI boilerplate with device_pci_driver(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-pci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index a140b1dd07..7a9315a0b6 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -37,9 +37,4 @@ static struct pci_driver xhci_pci_driver = {
.id_table = xhci_pci_tbl,
.probe = xhci_pci_probe,
};
-
-static int xhci_pci_init(void)
-{
- return pci_register_driver(&xhci_pci_driver);
-}
-device_initcall(xhci_pci_init);
+device_pci_driver(xhci_pci_driver);