Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-nmw
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl-pci.c
index 06e004157dcc46838f24def0474be317a62161e7..c5e339ee918b03bb49c689eca7f33b0fc7ad592a 100644 (file)
@@ -263,7 +263,7 @@ MODULE_DEVICE_TABLE(pci, iwl_hw_card_ids);
 
 static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 {
-       struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data);
+       const struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data);
        struct iwl_shared *shrd;
        struct iwl_trans *iwl_trans;
        int err;
@@ -278,17 +278,9 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 #ifdef CONFIG_IWLWIFI_IDI
        iwl_trans = iwl_trans_idi_alloc(shrd, pdev, ent);
-       if (iwl_trans == NULL) {
-               err = -ENOMEM;
-               goto out_free_bus;
-       }
-
-       shrd->trans = iwl_trans;
-       pci_set_drvdata(pdev, iwl_trans);
-
-       err = iwl_drv_start(shrd, iwl_trans, cfg);
 #else
        iwl_trans = iwl_trans_pcie_alloc(shrd, pdev, ent);
+#endif
        if (iwl_trans == NULL) {
                err = -ENOMEM;
                goto out_free_bus;
@@ -298,7 +290,6 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        pci_set_drvdata(pdev, iwl_trans);
 
        err = iwl_drv_start(shrd, iwl_trans, cfg);
-#endif
        if (err)
                goto out_free_trans;
 
This page took 0.116844 seconds and 5 git commands to generate.