Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7379efea authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by John W. Linville
Browse files

iwlwifi: dont use pci_dev before it being assign



In order to use build-in debugging macro, pci_dev in priv need to be
assigned first.

This fix iwl3945 driver oopsed at boot with 2.6.37-rc1

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3e3ede7d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4000,7 +4000,8 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
	 * "the hard way", rather than using device's scan.
	 */
	if (iwl3945_mod_params.disable_hw_scan) {
		IWL_ERR(priv, "sw scan support is deprecated\n");
		dev_printk(KERN_DEBUG, &(pdev->dev),
			"sw scan support is deprecated\n");
		iwl3945_hw_ops.hw_scan = NULL;
	}