From: Greg Kroah-Hartman Date: Fri, 18 Nov 2011 18:12:49 +0000 (-0800) Subject: PCI: Add helper macro for pci_register_driver boilerplate X-Git-Tag: v3.4-rc1~187^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aad4f4000cecec9c80b5f9aff91043dc104d61a0;p=pandora-kernel.git 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 for other busses (i2c and spi). Cc: Lars-Peter Clausen Signed-off-by: Greg Kroah-Hartman Acked-by: Jesse Barnes Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed