summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/patches-2.6.30/add-gpiolib-support.patch
blob: 88f60e4a7d9b4bd83571f2602ac57139aae5d812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- linux-2.6.30.9/drivers/gpio/gpiolib.c	2013-07-11 17:26:56.283467173 +0300
+++ linux-2.6.30.9/drivers/gpio/gpiolib.c	2013-07-11 17:07:42.298560582 +0300
@@ -1152,7 +1152,7 @@
 				: "?  ");
 
 		if (!is_out) {
-			int		irq = gpio_to_irq(gpio);
+			int		irq = __gpio_to_irq(gpio);
 			struct irq_desc	*desc = irq_to_desc(irq);
 
 			/* This races with request_irq(), set_irq_type(),
--- linux-2.6.30.9/arch/rlx/config.in.rtl8196c	2013-07-11 17:28:15.693460745 +0300
+++ linux-2.6.30.9/arch/rlx/config.in.rtl8196c	2013-07-11 16:42:12.030684449 +0300
@@ -3,6 +3,7 @@
 
 config RTL_8196C
 	def_bool y
+	select ARCH_REQUIRE_GPIOLIB
 
 #
 # Processor Config