diff options
author | John Crispin <blogic@openwrt.org> | 2012-05-27 16:12:59 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-05-27 16:12:59 +0000 |
commit | 78bf2cbd71db129e29022481d869dbfa5123a246 (patch) | |
tree | 485e6a0b0929d17808b879fb639626c07fd463fc /target/linux/lantiq/patches-3.2/0028-MIPS-lantiq-convert-gpio_stp-driver-to-clkdev-api.patch | |
parent | 7ee1e4f82233427e58f55ac907acda7286a34d3d (diff) | |
download | upstream-78bf2cbd71db129e29022481d869dbfa5123a246.tar.gz upstream-78bf2cbd71db129e29022481d869dbfa5123a246.tar.bz2 upstream-78bf2cbd71db129e29022481d869dbfa5123a246.zip |
[lantiq] 3.2 R.I.P.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31911 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.2/0028-MIPS-lantiq-convert-gpio_stp-driver-to-clkdev-api.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.2/0028-MIPS-lantiq-convert-gpio_stp-driver-to-clkdev-api.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/target/linux/lantiq/patches-3.2/0028-MIPS-lantiq-convert-gpio_stp-driver-to-clkdev-api.patch b/target/linux/lantiq/patches-3.2/0028-MIPS-lantiq-convert-gpio_stp-driver-to-clkdev-api.patch deleted file mode 100644 index 18a546afd9..0000000000 --- a/target/linux/lantiq/patches-3.2/0028-MIPS-lantiq-convert-gpio_stp-driver-to-clkdev-api.patch +++ /dev/null @@ -1,55 +0,0 @@ -From a76818770adabc7afdf3bef07f9f30d061c10082 Mon Sep 17 00:00:00 2001 -From: John Crispin <blogic@openwrt.org> -Date: Thu, 8 Mar 2012 11:21:33 +0100 -Subject: [PATCH 28/73] MIPS: lantiq: convert gpio_stp driver to clkdev api - -Update from old pmu_{dis,en}able() to ckldev api. - -Signed-off-by: John Crispin <blogic@openwrt.org> ---- - arch/mips/lantiq/xway/gpio_stp.c | 12 +++++++++--- - 1 files changed, 9 insertions(+), 3 deletions(-) - ---- a/arch/mips/lantiq/xway/gpio_stp.c -+++ b/arch/mips/lantiq/xway/gpio_stp.c -@@ -15,6 +15,8 @@ - #include <linux/mutex.h> - #include <linux/io.h> - #include <linux/gpio.h> -+#include <linux/clk.h> -+#include <linux/err.h> - - #include <lantiq_soc.h> - -@@ -78,8 +80,10 @@ static struct gpio_chip ltq_stp_chip = { - .owner = THIS_MODULE, - }; - --static int ltq_stp_hw_init(void) -+static int ltq_stp_hw_init(struct device *dev) - { -+ struct clk *clk; -+ - /* sane defaults */ - ltq_stp_w32(0, LTQ_STP_AR); - ltq_stp_w32(0, LTQ_STP_CPU0); -@@ -105,7 +109,9 @@ static int ltq_stp_hw_init(void) - */ - ltq_stp_w32_mask(0, LTQ_STP_ADSL_SRC, LTQ_STP_CON0); - -- ltq_pmu_enable(PMU_LED); -+ clk = clk_get(dev, NULL); -+ WARN_ON(IS_ERR(clk)); -+ clk_enable(clk); - return 0; - } - -@@ -138,7 +144,7 @@ static int __devinit ltq_stp_probe(struc - } - ret = gpiochip_add(<q_stp_chip); - if (!ret) -- ret = ltq_stp_hw_init(); -+ ret = ltq_stp_hw_init(&pdev->dev); - - return ret; - } |