Title: [9151] trunk/arch/blackfin/kernel/bfin_gpio.c: [#6263] fix build error : gpio mux groupcheck not defined for bf548
Revision
9151
Author
steven.miao
Date
2010-09-20 02:29:08 -0400 (Mon, 20 Sep 2010)

Log Message

[#6263] fix build error :  gpio mux groupcheck not defined for bf548

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/bfin_gpio.c (9150 => 9151)


--- trunk/arch/blackfin/kernel/bfin_gpio.c	2010-09-20 03:32:48 UTC (rev 9150)
+++ trunk/arch/blackfin/kernel/bfin_gpio.c	2010-09-20 06:29:08 UTC (rev 9151)
@@ -339,6 +339,10 @@
 
 	return (pmux >> (2 * gpio_sub_n(ident)) & 0x3);
 }
+static int portmuxgroup_check(unsigned short per)
+{
+	return 0;
+}
 #elif defined(CONFIG_BF52x) || defined(CONFIG_BF51x)
 static int portmuxgroup_check(unsigned short per)
 {
@@ -381,7 +385,10 @@
 }
 #else
 # define portmux_setup(...)  do { } while (0)
-# define portmuxgroup_check(...)  do { } while (0)
+static int portmuxgroup_check(unsigned short per)
+{
+	return 0;
+}
 #endif
 
 #ifndef CONFIG_BF54x
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to