diff options
author | Bob Copeland <me@bobcopeland.com> | 2009-08-07 06:33:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:36 -0400 |
commit | 6c766f413c81d5a11588552934fa093eab6ae06e (patch) | |
tree | 7309846bc4272abdfdb182024743ddc77a118ccd /drivers | |
parent | 0764de64c8628f653c7e8493017d6bd8d43f4e3b (diff) |
wl1251: use wiphy_dev instead of wl->spi->dev
Remove a dependency on the bus-specific struct device by using wiphy_dev
when requesting firmware.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c index a858e4dc20eb..953cdb4fd38f 100644 --- a/drivers/net/wireless/wl12xx/wl1251_main.c +++ b/drivers/net/wireless/wl12xx/wl1251_main.c | |||
@@ -75,9 +75,10 @@ static irqreturn_t wl1251_irq(int irq, void *cookie) | |||
75 | static int wl1251_fetch_firmware(struct wl1251 *wl) | 75 | static int wl1251_fetch_firmware(struct wl1251 *wl) |
76 | { | 76 | { |
77 | const struct firmware *fw; | 77 | const struct firmware *fw; |
78 | struct device *dev = wiphy_dev(wl->hw->wiphy); | ||
78 | int ret; | 79 | int ret; |
79 | 80 | ||
80 | ret = request_firmware(&fw, wl->chip.fw_filename, &wl->spi->dev); | 81 | ret = request_firmware(&fw, wl->chip.fw_filename, dev); |
81 | 82 | ||
82 | if (ret < 0) { | 83 | if (ret < 0) { |
83 | wl1251_error("could not get firmware: %d", ret); | 84 | wl1251_error("could not get firmware: %d", ret); |
@@ -113,9 +114,10 @@ out: | |||
113 | static int wl1251_fetch_nvs(struct wl1251 *wl) | 114 | static int wl1251_fetch_nvs(struct wl1251 *wl) |
114 | { | 115 | { |
115 | const struct firmware *fw; | 116 | const struct firmware *fw; |
117 | struct device *dev = wiphy_dev(wl->hw->wiphy); | ||
116 | int ret; | 118 | int ret; |
117 | 119 | ||
118 | ret = request_firmware(&fw, wl->chip.nvs_filename, &wl->spi->dev); | 120 | ret = request_firmware(&fw, wl->chip.nvs_filename, dev); |
119 | 121 | ||
120 | if (ret < 0) { | 122 | if (ret < 0) { |
121 | wl1251_error("could not get nvs file: %d", ret); | 123 | wl1251_error("could not get nvs file: %d", ret); |