]> Git Repo - linux.git/commit
PCI: Add helper macro for pci_register_driver boilerplate
authorGreg Kroah-Hartman <[email protected]>
Fri, 18 Nov 2011 18:12:49 +0000 (10:12 -0800)
committerGreg Kroah-Hartman <[email protected]>
Thu, 9 Feb 2012 16:36:05 +0000 (08:36 -0800)
commitaad4f4000cecec9c80b5f9aff91043dc104d61a0
tree26fcb531c54106ccf6548a156c2bb42f667fec9f
parente250b34e57888ebe829a0b89cfa8ad303ad5ae74
PCI: Add helper macro for pci_register_driver boilerplate

This patch introduces the module_pci_driver macro which is a convenience
macro for PCI driver modules similar to module_platform_driver. It is
intended to be used by drivers which init/exit section does nothing but
register/unregister the PCI driver. By using this macro it is possible
to eliminate a few lines of boilerplate code per PCI driver.

Based on work done by Lars-Peter Clausen <[email protected]> for other
busses (i2c and spi).

Cc: Lars-Peter Clausen <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Jesse Barnes <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
include/linux/pci.h
This page took 0.055814 seconds and 4 git commands to generate.