ARM: OMAP: Make plat-omap/i2c.c port checks local
authorTony Lindgren <tony@atomide.com>
Mon, 29 Oct 2012 23:17:59 +0000 (16:17 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 31 Oct 2012 22:37:13 +0000 (15:37 -0700)
commitc34f7c696211e3d45ff94a34824b65aa52576bc6
tree81327c2b471e51e47171ed11e57c99eda552a0ef
parentbb77209432873214a796a70a4539e4ebdf3feb54
ARM: OMAP: Make plat-omap/i2c.c port checks local

The common code should not have any omap1 or omap2+
specific code, and should not need to call the cpu_is_omap
macros.

The only remaining user for cpu_is_omap macros is
omap_i2c_nr_ports(). Let's make those checks in
the omap specific implementation of omap_i2c_add_bus()
instead in order to remove cpu_is_omap usage from
the common code.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/i2c.c
arch/arm/mach-omap2/i2c.c
arch/arm/plat-omap/i2c.c