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 26abc22..1fda411 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 67730e0..baf6e60 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}
 };