From 4a29094bdf6ff382b7558e242ddb91c67fc200c7 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 24 May 2010 23:37:19 +0200 Subject: MFD: pcf50633: Use mfd cells to register child devices This patch changes the pcf50633 core code to use mfd cells to register child devices instead of calling platform_device_{alloc,add} for each child. Signed-off-by: Lars-Peter Clausen --- include/linux/mfd/pcf50633/core.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'include/linux/mfd/pcf50633/core.h') diff --git a/include/linux/mfd/pcf50633/core.h b/include/linux/mfd/pcf50633/core.h index 9953fa14ec9..ae2bd97a4c8 100644 --- a/include/linux/mfd/pcf50633/core.h +++ b/include/linux/mfd/pcf50633/core.h @@ -154,13 +154,9 @@ struct pcf50633 { int onkey1s_held; - struct platform_device *gpio_pdev; - struct platform_device *rtc_pdev; - struct platform_device *mbc_pdev; - struct platform_device *adc_pdev; - struct platform_device *input_pdev; - struct platform_device *bl_pdev; - struct platform_device *regulator_pdev[PCF50633_NUM_REGULATORS]; + struct pcf50633_mbc *mbc; + struct pcf50633_adc *adc; + struct pcf50633_bl *bl; }; enum pcf50633_reg_int1 { -- cgit v1.2.3