From: Kevin Hilman Date: Fri, 22 Apr 2011 21:37:16 +0000 (-0700) Subject: gpio/omap: cleanup show revision, remove cpu_is checks, display only once X-Git-Tag: v3.1-rc1~313^2~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5ff4440cf5206fbb99d9a354ed9024eb3da047d;p=pandora-kernel.git 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 for finding/fixing a few -1s that were missed in the original patch. Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed