arm: tegra: enterprise: Register gpadc driver for tps8003x.
syed rafiuddin [Tue, 27 Sep 2011 09:15:58 +0000 (14:15 +0530)]
Registering gpadc driver through tps80031.

bug 872697

Reviewed-on: http://git-master/r/56986
(cherry picked from commit 95f9948f31f1ce0862821830bb348cbe027cfcaf)

Change-Id: I07942d3aac247b12e0e0cb344ed292bbae4caf78
Reviewed-on: http://git-master/r/61859
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R5871b51c9f335e6b1843c40c6882e24642813a28

arch/arm/mach-tegra/board-enterprise-power.c

index 851f4c1..bc114c3 100644 (file)
@@ -264,6 +264,10 @@ static struct tps80031_bg_platform_data battery_gauge_data = {
                .name   = "tps80031-battery-gauge",     \
                .platform_data = &battery_gauge_data,   \
        }
+#define TPS_GPADC()                                    \
+       {                                               \
+               .name   = "tps80031-gpadc",             \
+       }
 
 static struct tps80031_subdev_info tps80031_devs[] = {
        TPS_REG(VIO, vio),
@@ -285,6 +289,7 @@ static struct tps80031_subdev_info tps80031_devs[] = {
        TPS_RTC(),
        TPS_BATTERY(),
        TPS_BATTERY_GAUGE(),
+       TPS_GPADC(),
 };
 
 struct tps80031_32kclock_plat_data clk32k_pdata = {