Skip to content

Commit

Permalink
RX-51: Register twl4030-madc device
Browse files Browse the repository at this point in the history
Register twl4030-madc device

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Pali Rohár authored and Tony Lindgren committed Feb 1, 2013
1 parent 1e7bf5e commit 749a34b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/arm/mach-omap2/board-rx51-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,16 @@ static void __init rx51_init_lirc(void)
}
#endif

static struct platform_device madc_hwmon = {
.name = "twl4030_madc_hwmon",
.id = -1,
};

static void __init rx51_init_twl4030_hwmon(void)
{
platform_device_register(&madc_hwmon);
}

void __init rx51_peripherals_init(void)
{
rx51_i2c_init();
Expand All @@ -1281,5 +1291,6 @@ void __init rx51_peripherals_init(void)
omap_hsmmc_init(mmc);

rx51_charger_init();
rx51_init_twl4030_hwmon();
}

0 comments on commit 749a34b

Please sign in to comment.