ARM: Tegra: Harmony: Fix conflicting GPIO numbering
authorStephen Warren <swarren@nvidia.com>
Tue, 31 May 2011 21:14:07 +0000 (15:14 -0600)
committerColin Cross <ccross@android.com>
Sat, 4 Jun 2011 22:51:52 +0000 (15:51 -0700)
commitf2a4d8ae4d40f6f5482d207f47fd4d53b3ae0ed4
tree7b5650560a494b171a9b8e6a70bdbd530f6f243e
parent55922c9d1b84b89cb946c777fddccb3247e7df2c
ARM: Tegra: Harmony: Fix conflicting GPIO numbering

Currently, both the WM8903 and TPS6586x chips attempt to register with
gpiolib using the same GPIO numbers. This causes the audio driver to
fail to initialize.

To solve this, add a define to board-harmony.h for the TPS6586x, and make
board-harmony-power.c use this define, instead of directly referencing
TEGRA_NR_GPIOS.

This fixes a regression introduced by commit
6f168f2fa60f87e85e0df25e87e2372f22f5eb7c.
ARM: tegra: harmony: initialize the TPS65862 PMIC

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/board-harmony-power.c
arch/arm/mach-tegra/board-harmony.h