From f525229e355fdde808d6bf1fc0925ca589a59920 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 16 Jul 2013 07:17:33 +0000 Subject: AA: mac80211: delete the rt2x00 clk patch again It is only required for newer kernels Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@37365 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/615-rt2x00-fix_20mhz_clk.patch | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 package/mac80211/patches/615-rt2x00-fix_20mhz_clk.patch 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 9438d38bbf..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 -@@ -38,6 +38,7 @@ - #include - #include - #include -+#include - - #include "rt2x00.h" - #include "rt2800lib.h" -@@ -6417,13 +6418,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; - } -- cgit v1.2.3