summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-power.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-08-01 16:25:25 +0530
committerLokesh Pathak <lpathak@nvidia.com>2012-08-07 08:44:53 -0700
commit0bf836b37cef4345629ecd8efb1a3e7f30628525 (patch)
tree792eaa5fc19070144aa8bc5a239c02f00feeeb9c /arch/arm/mach-tegra/board-enterprise-power.c
parentfd4bc846766e336ab02abcae9d6cde5912a4d8a8 (diff)
rtc: tps80031: register as mfd sub device
register RTC driver of TPS80031 as mfd sub driver in place of adding it as a sub devices. This is inline with the mfd driver policy. Change-Id: I2f9c13478a1e85c9670dd7bc576ec761f2e24733 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/121133 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-power.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-power.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c
index 9f3f8ae79dbf..4bf7f03e8d6d 100644
--- a/arch/arm/mach-tegra/board-enterprise-power.c
+++ b/arch/arm/mach-tegra/board-enterprise-power.c
@@ -333,13 +333,6 @@ static struct tps80031_bg_platform_data battery_gauge_data = {
.battery_present = 1,
};
-#define TPS_RTC() \
- { \
- .id = 0, \
- .name = "rtc_tps80031", \
- .platform_data = &rtc_data, \
- }
-
#define TPS_BATTERY() \
{ \
.name = "tps80031-charger", \
@@ -356,14 +349,12 @@ static struct tps80031_bg_platform_data battery_gauge_data = {
}
#define TPS80031_DEVS_COMMON \
- TPS_RTC(), \
TPS_BATTERY(), \
TPS_BATTERY_GAUGE(), \
TPS_GPADC()
static struct tps80031_subdev_info tps80031_devs[] = {
- TPS_RTC(),
TPS_BATTERY(),
TPS_BATTERY_GAUGE(),
TPS_GPADC()
@@ -451,6 +442,7 @@ static struct tps80031_platform_data tps_platform = {
.clk32k_init_data = clk32k_idata,
.clk32k_init_data_size = ARRAY_SIZE(clk32k_idata),
.use_power_off = true,
+ .rtc_pdata = &rtc_data,
};
static struct i2c_board_info __initdata enterprise_regulators[] = {