On Mon, Dec 05, 2011 at 10:28:29AM -0800, Jesse Barnes wrote: > On Fri, 18 Nov 2011 10:12:49 -0800 > Greg KH <greg@xxxxxxxxx> wrote: > > > From: Greg Kroah-Hartman <gregkh@xxxxxxx> > > > > 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 <lars@xxxxxxxxxx> for other > > busses (i2c and spi). > > > > Cc: Lars-Peter Clausen <lars@xxxxxxxxxx> > > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx> > > > > --- > > > > Jesse, I've added the same type of macros for i2c, spi, and usb to my > > driver-core tree, and converted a number of drivers to these new macros. > > If you give me the ack, I can add this patch to my tree as well. > > > > I'll follow up this patch with an example showing how it works. > > > > Comments? > > > > Yeah, I have no problem with it. You can queue it up with the other > changes and add my acked-by to keep dependencies to a minimum. Wonderful, will do. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html