iwlwifi: using PCI_DEVICE macro
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 25 Oct 2007 09:15:32 +0000 (17:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:03:14 +0000 (15:03 -0800)
PCI_DEVICE macro is more concise when using defualt values
in device definitions

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-4965.c

index 26abc2268860c9898e5a8878c0fd69dd193dba17..1fda41107df10960463163720cce7873949bd39b 100644 (file)
@@ -2298,8 +2298,8 @@ void iwl_hw_cancel_deferred_work(struct iwl_priv *priv)
 }
 
 struct pci_device_id iwl_hw_card_ids[] = {
-       {0x8086, 0x4222, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-       {0x8086, 0x4227, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+       {PCI_DEVICE(0x8086, 0x4222)},
+       {PCI_DEVICE(0x8086, 0x4227)},
        {0}
 };
 
index 67730e09729b113afc47a64a87d25ae094b7915f..baf6e60d49ae71f0c4dc11a571f33aa043d59402 100644 (file)
@@ -4693,8 +4693,8 @@ void iwl_hw_cancel_deferred_work(struct iwl_priv *priv)
 }
 
 struct pci_device_id iwl_hw_card_ids[] = {
-       {0x8086, 0x4229, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
-       {0x8086, 0x4230, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+       {PCI_DEVICE(0x8086, 0x4229)},
+       {PCI_DEVICE(0x8086, 0x4230)},
        {0}
 };