]> bbs.cooldavid.org Git - net-next-2.6.git/commit
OMAP3: serial: Check for zero-based physical addr
authorSergio Aguirre <saaguirre@ti.com>
Sat, 27 Feb 2010 20:13:43 +0000 (14:13 -0600)
committerSergio Aguirre <saaguirre@ti.com>
Mon, 15 Mar 2010 21:33:31 +0000 (16:33 -0500)
commite88d556dc5f0ef437e3538277a1dd33e5038be77
tree3c32688dfa091dfb9718527cffec76617cadf0d6
parent29b2ee5af5f3a02846bd38a1e2121d62ee5f6aca
OMAP3: serial: Check for zero-based physical addr

This is for protecting a wrong mapping attempt of a zero-based
physical address.

The result is that, no serial port will be attempted to be mapped.

Also add an additional protection for NULL clocks before attempting
to enable them (if above condition applies)

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
arch/arm/mach-omap2/serial.c