]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: OMAP2+: I2C: always compile I2C reset code, even if I2C driver is not built
authorPaul Walmsley <paul@pwsan.com>
Fri, 24 Feb 2012 00:41:52 +0000 (16:41 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 24 Feb 2012 00:41:52 +0000 (16:41 -0800)
commited8dfd22ea2533a1b169881c3de94be8daa0e297
tree20f63e26e9cdce48456cde0f108bc8e8dee353b8
parentb01543dfe67bb1d191998e90d20534dc354de059
ARM: OMAP2+: I2C: always compile I2C reset code, even if I2C driver is not built

During kernel init, we reset all IP blocks on the OMAP that we can,
even if there is no driver compiled for that IP block.  Unlike most IP
blocks, the I2C block requires some extra programming for this to
work.  This reset code is incorrectly omitted when the I2C driver is
deselected.  In this circumstance, the build breaks.  Fix by compiling
the I2C reset code unconditionally.

Problem reported by Russell King <linux@arm.linux.org.uk>.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Russell King <linux@arm.linux.org.uk>
Tested-by: Shubhrajyoti <shubhrajyoti@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile