Re: [PATCH] PCI: Add helper macro for pci_register_driver boilerplate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Thanks,
-- 
Jesse Barnes, Intel Open Source Technology Center

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux