Title: [9161] trunk/arch/blackfin/kernel/bfin_gpio.c: [#5155] bfin gpio: peripheral group check: if offset is negative bypass the group check
Revision
9161
Author
steven.miao
Date
2010-09-25 00:13:02 -0400 (Sat, 25 Sep 2010)

Log Message

[#5155] bfin gpio: peripheral group check: if offset is negative bypass the group check

bypass the mux group check if offset is negative as the port_mux[] offset array
defined

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/bfin_gpio.c (9160 => 9161)


--- trunk/arch/blackfin/kernel/bfin_gpio.c	2010-09-22 08:11:56 UTC (rev 9160)
+++ trunk/arch/blackfin/kernel/bfin_gpio.c	2010-09-25 04:13:02 UTC (rev 9161)
@@ -269,6 +269,8 @@
 	s8 offset;
 	u16 function = P_FUNCT2MUX(per);
 	offset = port_mux[P_IDENT(per)];
+	if (offset < 0)
+		return 0;
 	ident = P_IDENT(per);
 	pfunc = bfin_read_PORT_MUX();
 	for (m = 0; m < ARRAY_SIZE(port_mux); m++) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to