aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-4.4/135-clk-sunxi-fix-signedness-bug.patch
diff options
context:
space:
mode:
authorZoltan HERPAI <wigyori@uid0.hu>2016-01-09 16:20:39 +0000
committerZoltan HERPAI <wigyori@uid0.hu>2016-01-09 16:20:39 +0000
commite055d9d9674666645b2cd08b8f3129c80dcf3f15 (patch)
tree7a0d14b3e0dbfc2ec6af7231959e5414dc8f41b2 /target/linux/sunxi/patches-4.4/135-clk-sunxi-fix-signedness-bug.patch
parent221a67a90a5d278033f896a7170291d70260cf3b (diff)
downloadmaster-187ad058-e055d9d9674666645b2cd08b8f3129c80dcf3f15.tar.gz
master-187ad058-e055d9d9674666645b2cd08b8f3129c80dcf3f15.tar.bz2
master-187ad058-e055d9d9674666645b2cd08b8f3129c80dcf3f15.zip
sunxi: initial 4.4 support
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48161 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sunxi/patches-4.4/135-clk-sunxi-fix-signedness-bug.patch')
-rw-r--r--target/linux/sunxi/patches-4.4/135-clk-sunxi-fix-signedness-bug.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.4/135-clk-sunxi-fix-signedness-bug.patch b/target/linux/sunxi/patches-4.4/135-clk-sunxi-fix-signedness-bug.patch
new file mode 100644
index 0000000000..c90bbb5213
--- /dev/null
+++ b/target/linux/sunxi/patches-4.4/135-clk-sunxi-fix-signedness-bug.patch
@@ -0,0 +1,27 @@
+From b1558f168f4ef5956913d73fe330c4da85c74349 Mon Sep 17 00:00:00 2001
+From: Dan Carpenter <dan.carpenter@oracle.com>
+Date: Sat, 12 Dec 2015 15:43:46 +0300
+Subject: [PATCH] clk: sunxi: signedness bug in sun8i_h3_bus_gates_init()
+
+"index" needs to be signed for the error handling to work.
+
+Fixes: ab6e23a4e388 ('clk: sunxi: Add H3 clocks support')
+Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
+Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
+---
+ drivers/clk/sunxi/clk-sun8i-bus-gates.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/clk/sunxi/clk-sun8i-bus-gates.c b/drivers/clk/sunxi/clk-sun8i-bus-gates.c
+index 7ab60c5..b8c7753 100644
+--- a/drivers/clk/sunxi/clk-sun8i-bus-gates.c
++++ b/drivers/clk/sunxi/clk-sun8i-bus-gates.c
+@@ -40,7 +40,7 @@ static void __init sun8i_h3_bus_gates_init(struct device_node *node)
+ const __be32 *p;
+ int number, i;
+ u8 clk_bit;
+- u32 index;
++ int index;
+
+ reg = of_io_request_and_map(node, 0, of_node_full_name(node));
+ if (IS_ERR(reg))