[PATCH 28/39] staging: remove DEFINE_PCI_DEVICE_TABLE macro

ZHAO Gang gamerh2o at gmail.com
Thu Dec 5 09:06:33 UTC 2013


On Tue, Dec 3, 2013 at 7:26 AM, Jingoo Han <jg1.han at samsung.com> wrote:
> Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
> is not preferred.
>
> Signed-off-by: Jingoo Han <jg1.han at samsung.com>
>

I think you misunderstood the checkpatch.pl warning, it tells you what
to do, not what not to do.

WARNING: Use DEFINE_PCI_DEVICE_TABLE for struct pci_device_id

This means use DEFINE_PCI_DEVICE_TABLE to replace struct
pci_device_id, not reverse.


More information about the devel mailing list