I2C: OMAP2+: use platform_data ip revision to select register map
authorAndy Green <andy@warmcat.com>
Tue, 8 Mar 2011 11:08:20 +0000 (11:08 +0000)
committerTony Lindgren <tony@atomide.com>
Tue, 8 Mar 2011 23:23:15 +0000 (15:23 -0800)
commitb86ee6c89177aed2aa1355771aef2ac2a66e3254
treea6280b686e935f4d4e13530fcdf46c20feccaed8
parent9500283922ca3ba6eb5fd965391f16ca364c5667
I2C: OMAP2+: use platform_data ip revision to select register map

Change the register map names to reflect the IP revision they
are representing, and use the platform_data IP revision index
to select between them at init time.

Eliminates 1 of 17 cpu_...() calls in the driver.

Cc: patches@linaro.org
Cc: Ben Dooks <ben-linux@fluff.org>
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c