linux-next: manual merge of the wireless tree with Linus' tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi John,

Today's linux-next merge of the wireless tree got a conflict in
drivers/net/wireless/iwlwifi/iwl-pci.c between commit 16a9d06c753a
("iwlagn: sysfs couldn't find the priv pointer") from Linus' tree and
commit cac988a682d4 ("iwlagn: introduce struct iwl-shared - known by all
layers") from the wireless tree.

I fixed it up (I think - see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@xxxxxxxxxxxxxxxx

diff --cc drivers/net/wireless/iwlwifi/iwl-pci.c
index 2fdbffa,e41f53e..0000000
--- a/drivers/net/wireless/iwlwifi/iwl-pci.c
+++ b/drivers/net/wireless/iwlwifi/iwl-pci.c
@@@ -478,25 -483,30 +483,25 @@@ out_no_pci
  	return err;
  }
  
 -static void iwl_pci_down(struct iwl_bus *bus)
 -{
 -	struct iwl_pci_bus *pci_bus = (struct iwl_pci_bus *) bus->bus_specific;
 -
 -	pci_disable_msi(pci_bus->pci_dev);
 -	pci_iounmap(pci_bus->pci_dev, pci_bus->hw_base);
 -	pci_release_regions(pci_bus->pci_dev);
 -	pci_disable_device(pci_bus->pci_dev);
 -	pci_set_drvdata(pci_bus->pci_dev, NULL);
 -
 -	kfree(bus);
 -}
 -
  static void __devexit iwl_pci_remove(struct pci_dev *pdev)
  {
- 	struct iwl_priv *priv = pci_get_drvdata(pdev);
- 	struct iwl_bus *bus = priv->bus;
+ 	struct iwl_shared *shrd = pci_get_drvdata(pdev);
+ 	struct iwl_bus *bus = shrd->bus;
 +	struct iwl_pci_bus *pci_bus = IWL_BUS_GET_PCI_BUS(bus);
 +	struct pci_dev *pci_dev = IWL_BUS_GET_PCI_DEV(bus);
  
- 	iwl_remove(priv);
+ 	iwl_remove(shrd->priv);
  
 -	iwl_pci_down(bus);
 +	pci_disable_msi(pci_dev);
 +	pci_iounmap(pci_dev, pci_bus->hw_base);
 +	pci_release_regions(pci_dev);
 +	pci_disable_device(pci_dev);
 +	pci_set_drvdata(pci_dev, NULL);
 +
 +	kfree(bus);
  }
  
- #ifdef CONFIG_PM
+ #ifdef CONFIG_PM_SLEEP
  
  static int iwl_pci_suspend(struct device *device)
  {
--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux