diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2014-12-01 08:33:18 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-12-01 15:57:23 -0500 |
commit | 6992991346e820ca031efee95c769e45649f79fc (patch) | |
tree | c1cbe18f7643e7e9a1b767bfb090f9d80f49a639 | |
parent | 60abbb6ee6efe800ffcf9d5a98666f927b75dd0e (diff) |
wil6210: remove wil_to_pcie_dev()
There is no need to obtain physical device through
wil->pdev->dev path, as it is done by this macro.
The same device already stored as wiphy's device, thus
wil_to_dev() returns the same device as wil_to_pcie_dev()
Remove unnecessary macros, this allows to drop dependency
by pci.h in the firmware download code.
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/wil6210/fw.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/fw_inc.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wil6210.h | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/wil6210/fw.c b/drivers/net/wireless/ath/wil6210/fw.c index 8c6f3b041f77..93c5cc16c515 100644 --- a/drivers/net/wireless/ath/wil6210/fw.c +++ b/drivers/net/wireless/ath/wil6210/fw.c | |||
@@ -15,7 +15,6 @@ | |||
15 | */ | 15 | */ |
16 | #include <linux/firmware.h> | 16 | #include <linux/firmware.h> |
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/pci.h> | ||
19 | #include <linux/crc32.h> | 18 | #include <linux/crc32.h> |
20 | #include "wil6210.h" | 19 | #include "wil6210.h" |
21 | #include "fw.h" | 20 | #include "fw.h" |
diff --git a/drivers/net/wireless/ath/wil6210/fw_inc.c b/drivers/net/wireless/ath/wil6210/fw_inc.c index 44cb71f5ea5b..265845568d86 100644 --- a/drivers/net/wireless/ath/wil6210/fw_inc.c +++ b/drivers/net/wireless/ath/wil6210/fw_inc.c | |||
@@ -471,7 +471,7 @@ int wil_request_firmware(struct wil6210_priv *wil, const char *name) | |||
471 | size_t sz; | 471 | size_t sz; |
472 | const void *d; | 472 | const void *d; |
473 | 473 | ||
474 | rc = request_firmware(&fw, name, wil_to_pcie_dev(wil)); | 474 | rc = request_firmware(&fw, name, wil_to_dev(wil)); |
475 | if (rc) { | 475 | if (rc) { |
476 | wil_err_fw(wil, "Failed to load firmware %s\n", name); | 476 | wil_err_fw(wil, "Failed to load firmware %s\n", name); |
477 | return rc; | 477 | return rc; |
diff --git a/drivers/net/wireless/ath/wil6210/wil6210.h b/drivers/net/wireless/ath/wil6210/wil6210.h index f2f89e0d53b8..8c09700c11c1 100644 --- a/drivers/net/wireless/ath/wil6210/wil6210.h +++ b/drivers/net/wireless/ath/wil6210/wil6210.h | |||
@@ -469,7 +469,6 @@ struct wil6210_priv { | |||
469 | #define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w)) | 469 | #define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w)) |
470 | #define wil_to_ndev(i) (wil_to_wdev(i)->netdev) | 470 | #define wil_to_ndev(i) (wil_to_wdev(i)->netdev) |
471 | #define ndev_to_wil(n) (wdev_to_wil(n->ieee80211_ptr)) | 471 | #define ndev_to_wil(n) (wdev_to_wil(n->ieee80211_ptr)) |
472 | #define wil_to_pcie_dev(i) (&i->pdev->dev) | ||
473 | 472 | ||
474 | __printf(2, 3) | 473 | __printf(2, 3) |
475 | void wil_dbg_trace(struct wil6210_priv *wil, const char *fmt, ...); | 474 | void wil_dbg_trace(struct wil6210_priv *wil, const char *fmt, ...); |