From: Alexander Shishkin Date: Fri, 30 Oct 2009 18:52:00 +0000 (-0700) Subject: omap: Eliminate OMAP_MAX_NR_PORTS X-Git-Tag: v2.6.32-omap1~11^2^2~1^2^2^2^2^2~11^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d74c0a571975d8af5d29b2bcac1cf85d351d51a;p=pandora-kernel.git omap: Eliminate OMAP_MAX_NR_PORTS Eliminate OMAP_MAX_NR_PORTS Note that also the null terminator entry for omap1 serial_platform_data needs to be now removed to avoid oopsing. Note that mach-omap1 uses struct plat_serial8250_port array, which requires a null terminator at the end, and that's why we need to use ARRAY_SIZE - 1. This is not needed on mach-omap2 as the array used is struct omap_uart_state, and does not use a null terminator. Signed-off-by: Alexander Shishkin Acked-by: Kevin Hilman Signed-off-by: Ladislav Michl Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed