summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/pci.c
diff options
context:
space:
mode:
authorMichal Kazior2013-07-05 15:15:11 +0200
committerKalle Valo2013-07-30 17:01:17 +0200
commit7a5fe3f87c39565e4c5eb7e39638fc979c8fd98b (patch)
tree4e842f297f9f71e67afef89a163468e385f1d51b /drivers/net/wireless/ath/ath10k/pci.c
parentath10k: provide errno if bmi read/write fails (diff)
downloadkernel-qcow2-linux-7a5fe3f87c39565e4c5eb7e39638fc979c8fd98b.tar.gz
kernel-qcow2-linux-7a5fe3f87c39565e4c5eb7e39638fc979c8fd98b.tar.xz
kernel-qcow2-linux-7a5fe3f87c39565e4c5eb7e39638fc979c8fd98b.zip
ath10k: change function to take struct ath10k as arg
This aligns it to the argument list of other similar functions. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index fe43b4105d7a..445ec78d4982 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -2058,9 +2058,9 @@ static int ath10k_pci_reset_target(struct ath10k *ar)
return 0;
}
-static void ath10k_pci_device_reset(struct ath10k_pci *ar_pci)
+static void ath10k_pci_device_reset(struct ath10k *ar)
{
- struct ath10k *ar = ar_pci->ar;
+ struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
void __iomem *mem = ar_pci->mem;
int i;
u32 val;
@@ -2255,7 +2255,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
* is in an unexpected state. We try to catch that here in order to
* reset the Target and retry the probe.
*/
- ath10k_pci_device_reset(ar_pci);
+ ath10k_pci_device_reset(ar);
ret = ath10k_pci_reset_target(ar);
if (ret)