From: Pali Rohár Date: Sun, 20 Jan 2013 02:54:26 +0000 (+0100) Subject: RX-51: Register twl4030-madc device X-Git-Tag: v3.9-rc1~117^2~3^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=749a34b37de27918c88391f8f62f65e9e26e8689;p=profile%2Fivi%2Fkernel-x86-ivi.git RX-51: Register twl4030-madc device Register twl4030-madc device Signed-off-by: Pali Rohár Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 0f4012c..07a9ca8 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -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(); @@ -1281,5 +1291,6 @@ void __init rx51_peripherals_init(void) omap_hsmmc_init(mmc); rx51_charger_init(); + rx51_init_twl4030_hwmon(); }