git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OMAP3: allow to disable UART4
[pandora-kernel.git]
/
arch
/
arm
/
mach-omap2
/
serial.c
diff --git
a/arch/arm/mach-omap2/serial.c
b/arch/arm/mach-omap2/serial.c
index
3b6756e
..
9ccb723
100644
(file)
--- a/
arch/arm/mach-omap2/serial.c
+++ b/
arch/arm/mach-omap2/serial.c
@@
-679,6
+679,13
@@
static int __init omap_serial_early_init(void)
struct omap_hwmod *oh;
struct omap_uart_state *uart;
struct omap_hwmod *oh;
struct omap_uart_state *uart;
+#ifdef CONFIG_OMAP3_DISABLE_UART4
+ if (i == 3) {
+ i++;
+ continue;
+ }
+#endif
+
snprintf(oh_name, MAX_UART_HWMOD_NAME_LEN,
"uart%d", i + 1);
oh = omap_hwmod_lookup(oh_name);
snprintf(oh_name, MAX_UART_HWMOD_NAME_LEN,
"uart%d", i + 1);
oh = omap_hwmod_lookup(oh_name);