Subject: Re: Subject: [PATCH 1/6] bna: Brocade 10Gb Ethernet device driver

From: Stephen Hemminger <[email-masked]>
Date: Wed, 10 Feb 2010 09:15:06 -0800

On Tue, 9 Feb 2010 22:29:15 -0800
Rasesh Mody <[email-masked]> wrote:

> +static struct pci_device_id bnad_pci_id_table[] = {
> +	{
> +	 .vendor = PCI_VENDOR_ID_BROCADE,
> +	 .device = PCI_DEVICE_ID_BROCADE_CATAPULT,
> +	 .subvendor = PCI_ANY_ID,
> +	 .subdevice = PCI_ANY_ID,
> +	 .class = PCI_CLASS_NETWORK_ETHERNET << 8,
> +	 .class_mask = 0xffff00},
> +	{0, 0}
> +};
> +
> +MODULE_DEVICE_TABLE(pci, bnad_pci_id_table

Use:

static DEFINE_PCI_DEVICE_TABLE(bnad_pci_id_table) = {
     
not sure if you require class/class_mask or can use
	PCI_VDEVICE(BROCADE, PCI_DEVICE_ID_BROCADE_CATAPLUT)

--