[PATCH 3/3] OMAP2+: UART: replace omap34xx/omap4xx cpu checks with not omap24xx
Govindraj.R
govindraj.raja at ti.com
Wed Mar 21 06:25:01 EDT 2012
From: "Govindraj.R" <govindraj.raja at ti.com>
Minor cleanup, replace all omap34xx/omap44xx cpu checks with
cpu is not omap24xx check.
Cc: Paul Walmsley <paul at pwsan.com>
Cc: Felipe Balbi <balbi at ti.com
Cc: Kevin Hilman <khilman at ti.com>
Signed-off-by: Govindraj.R <govindraj.raja at ti.com>
---
arch/arm/mach-omap2/serial.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 330ee04..83ab5a2 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -377,8 +377,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata,
oh->dev_attr = uart;
- if (((cpu_is_omap34xx() || cpu_is_omap44xx()) && bdata->pads)
- && !uart_debug)
+ if ((!cpu_is_omap24xx() && bdata->pads) && !uart_debug)
device_init_wakeup(&pdev->dev, true);
}
@@ -401,7 +400,7 @@ void __init omap_serial_board_init(struct omap_uart_port_info *info)
bdata.pads = NULL;
bdata.pads_cnt = 0;
- if (cpu_is_omap44xx() || cpu_is_omap34xx())
+ if (!cpu_is_omap24xx())
omap_serial_fill_default_pads(&bdata);
if (!info)
--
1.7.5.4
More information about the linux-arm-kernel
mailing list