From patchwork Sun Jan 20 02:54:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: RX-51: Register twl4030-madc device From: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 213909 Message-Id: <1358650466-29917-1-git-send-email-pali.rohar@gmail.com> To: Tony Lindgren , Russell King Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Sun, 20 Jan 2013 03:54:26 +0100 Signed-off-by: Pali Rohár Reviewed-by: Pavel Machek --- arch/arm/mach-omap2/board-rx51-peripherals.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 9a0dbb7..286292e 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -1364,6 +1364,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(); @@ -1386,5 +1396,6 @@ void __init rx51_peripherals_init(void) omap_hsmmc_init(mmc); rx51_charger_init(); + rx51_init_twl4030_hwmon(); }