diff options
author | Fred Chou <fred.chou.nd@gmail.com> | 2014-12-26 16:19:18 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-07 10:41:42 +0200 |
commit | b9d305cc47407f6a615145ff69e89060e7def6c7 (patch) | |
tree | 13bc5a4f09cdfc27f5376f42c3dd1a7ec73af891 /drivers/net/wireless/rt2x00/rt2x00firmware.c | |
parent | c20e7789be9f64ed6000e3d985bc7203781a671c (diff) | |
download | op-kernel-dev-b9d305cc47407f6a615145ff69e89060e7def6c7.zip op-kernel-dev-b9d305cc47407f6a615145ff69e89060e7def6c7.tar.gz |
rt2x00: use helper to check capability/requirement
Use rt2x00_has_cap_flag macro to check rt2x00dev->cap_flags.
Signed-off-by: Fred Chou <fred.chou.nd@gmail.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00firmware.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00firmware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00firmware.c b/drivers/net/wireless/rt2x00/rt2x00firmware.c index fbae279..5813300 100644 --- a/drivers/net/wireless/rt2x00/rt2x00firmware.c +++ b/drivers/net/wireless/rt2x00/rt2x00firmware.c @@ -96,7 +96,7 @@ int rt2x00lib_load_firmware(struct rt2x00_dev *rt2x00dev) { int retval; - if (!test_bit(REQUIRE_FIRMWARE, &rt2x00dev->cap_flags)) + if (!rt2x00_has_cap_flag(rt2x00dev, REQUIRE_FIRMWARE)) return 0; if (!rt2x00dev->fw) { |