RE: [PATCH] MISC: Convert to DEFINE_PCI_DEVICE_TABLE

From: Altobelli, David
Date: Fri Dec 02 2011 - 10:51:23 EST


-----Original Message-----
> From: Axel Lin
> Subject: [PATCH] MISC: Convert to DEFINE_PCI_DEVICE_TABLE

> Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
> tables. Also convert to the PCI_DEVICE/PCI_VDEVICE macros for better
> readablity.

> drivers/misc/hpilo.c | 2 +-

> diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c
> index fffc227..f705cbb 100644
> --- a/drivers/misc/hpilo.c
> +++ b/drivers/misc/hpilo.c
> @@ -828,7 +828,7 @@ out:
> return error;
> }

> -static struct pci_device_id ilo_devices[] = {
> +static DEFINE_PCI_DEVICE_TABLE(ilo_devices) = {
> { PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB204) },
> { PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3307) },
> { }

Acked-by: David Altobelli <david.altobelli@xxxxxx>

Thanks
èº{.nÇ+‰·Ÿ®‰­†+%ŠËlzwm…ébëæìr¸›zX§»®w¥Š{ayºÊÚë,j­¢f£¢·hš‹àz¹®w¥¢¸ ¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾«‘êçzZ+ƒùšŽŠÝj"ú!¶iO•æ¬z·švØ^¶m§ÿðà nÆàþY&—