aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-19 00:36:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-19 00:36:28 +0000
commitb55b2d43a0f88348844bcc58aad4d3314f7c6e14 (patch)
treed3b704365b686401124eb6618f5c2a907d12ce8e /package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch
parent705d7a8aa438a21daa646e1dc8c5d0a45295de0c (diff)
downloadupstream-b55b2d43a0f88348844bcc58aad4d3314f7c6e14.tar.gz
upstream-b55b2d43a0f88348844bcc58aad4d3314f7c6e14.tar.bz2
upstream-b55b2d43a0f88348844bcc58aad4d3314f7c6e14.zip
rt2x00: remove the incompatible 20 mhz clock patch again (fixes #13532)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@39952 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch')
-rw-r--r--package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch b/package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch
deleted file mode 100644
index d843b7ab53..0000000000
--- a/package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/drivers/net/wireless/rt2x00/rt2800lib.c
-+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
-@@ -36,6 +36,7 @@
- #include <linux/kernel.h>
- #include <linux/module.h>
- #include <linux/slab.h>
-+#include <linux/clk.h>
-
- #include "rt2x00.h"
- #include "rt2800lib.h"
-@@ -7781,13 +7782,14 @@ static int rt2800_probe_rt(struct rt2x00
-
- int rt2800_probe_clk(struct rt2x00_dev *rt2x00dev)
- {
-- struct rt2x00_platform_data *pdata = rt2x00dev->dev->platform_data;
- struct hw_mode_spec *spec = &rt2x00dev->spec;
-+ struct clk *clk = clk_get(rt2x00dev->dev, NULL);
-
-- if (!pdata)
-- return -EINVAL;
-+ if (IS_ERR(clk))
-+ return PTR_ERR(clk);
-
-- spec->clk_is_20mhz = pdata->clk_is_20mhz;
-+ if (clk_get_rate(clk) == 20000000)
-+ spec->clk_is_20mhz = 1;
-
- return 0;
- }