Similar to varoius *_platfrom_drivers(), introduce device_pci_driver() to simplify PCI driver boilerplate. Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- include/linux/pci.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index 0022922fc..d92d70b6b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -242,6 +242,11 @@ struct pci_driver { int pci_register_driver(struct pci_driver *pdrv); int pci_register_device(struct pci_dev *pdev); +#define pci_driver_register pci_register_driver + +#define device_pci_driver(drv) \ + register_driver_macro(device,pci,drv) + extern struct list_head pci_root_buses; /* list of all known PCI buses */ extern void register_pci_controller(struct pci_controller *hose); -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox