gpio/omap: cleanup show revision, remove cpu_is checks, display only once
authorKevin Hilman <khilman@ti.com>
Fri, 22 Apr 2011 21:37:16 +0000 (14:37 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 16 Jun 2011 18:14:13 +0000 (11:14 -0700)
commite5ff4440cf5206fbb99d9a354ed9024eb3da047d
tree79a085d5f2e99deb9a71d018c12738e247d23846
parent9942da0e4b037a852b230208410141768d473deb
gpio/omap: cleanup show revision, remove cpu_is checks, display only once

Remove cpu_is_* checks from gpio_show_revision() by passing in the
revision address offset from platform data.  SoCs with no revision
register (15xx, 7xx, and all MPUIOs) use -1 (actually, USHRT_MAX) to
signify no register.

While here, all GPIO banks are assumed to be the same revision, so fix
show_revision() to only show the revision for the first bank it finds.
This removes duplicate GPIO revision prints during boot.

Thanks to Charulatha V <charu@ti.com> for finding/fixing a few -1s
that were missed in the original patch.

Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap1/gpio15xx.c
arch/arm/mach-omap1/gpio16xx.c
arch/arm/mach-omap1/gpio7xx.c
arch/arm/mach-omap2/gpio.c
arch/arm/plat-omap/include/plat/gpio.h
drivers/gpio/gpio-omap.c