diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-06-13 02:07:31 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-07-01 09:57:43 -0400 |
commit | 88289c80d419897c03f7f43b35e3730d8fb6825b (patch) | |
tree | 026e38319b74258f490e52350af6bc86eaf3ad2b /arch/arm/mach-imx/mach-mx35_3ds.c | |
parent | 544496ab5cbdae312351da4c742ae70cab08dbf2 (diff) |
dma: ipu: remove the use of ipu_platform_data
The struct ipu_platform_data is used by platform code to pass
MXC_IPU_IRQ_START to ipu-core driver. We can save it by having
ipu-core driver call irq_alloc_descs to get the irq_base.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-mx35_3ds.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx35_3ds.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-imx/mach-mx35_3ds.c b/arch/arm/mach-imx/mach-mx35_3ds.c index fa1ea74dfdd3..ad63e6ebee6d 100644 --- a/arch/arm/mach-imx/mach-mx35_3ds.c +++ b/arch/arm/mach-imx/mach-mx35_3ds.c | |||
@@ -80,10 +80,6 @@ static const struct fb_videomode fb_modedb[] = { | |||
80 | }, | 80 | }, |
81 | }; | 81 | }; |
82 | 82 | ||
83 | static const struct ipu_platform_data mx3_ipu_data __initconst = { | ||
84 | .irq_base = MXC_IPU_IRQ_START, | ||
85 | }; | ||
86 | |||
87 | static struct mx3fb_platform_data mx3fb_pdata __initdata = { | 83 | static struct mx3fb_platform_data mx3fb_pdata __initdata = { |
88 | .name = "Ceramate-CLAA070VC01", | 84 | .name = "Ceramate-CLAA070VC01", |
89 | .mode = fb_modedb, | 85 | .mode = fb_modedb, |
@@ -297,10 +293,6 @@ err: | |||
297 | return ret; | 293 | return ret; |
298 | } | 294 | } |
299 | 295 | ||
300 | static const struct ipu_platform_data mx35_3ds_ipu_data __initconst = { | ||
301 | .irq_base = MXC_IPU_IRQ_START, | ||
302 | }; | ||
303 | |||
304 | static struct i2c_board_info mx35_3ds_i2c_camera = { | 296 | static struct i2c_board_info mx35_3ds_i2c_camera = { |
305 | I2C_BOARD_INFO("ov2640", 0x30), | 297 | I2C_BOARD_INFO("ov2640", 0x30), |
306 | }; | 298 | }; |
@@ -596,7 +588,7 @@ static void __init mx35_3ds_init(void) | |||
596 | i2c_register_board_info( | 588 | i2c_register_board_info( |
597 | 0, i2c_devices_3ds, ARRAY_SIZE(i2c_devices_3ds)); | 589 | 0, i2c_devices_3ds, ARRAY_SIZE(i2c_devices_3ds)); |
598 | 590 | ||
599 | imx35_add_ipu_core(&mx35_3ds_ipu_data); | 591 | imx35_add_ipu_core(); |
600 | platform_device_register(&mx35_3ds_ov2640); | 592 | platform_device_register(&mx35_3ds_ov2640); |
601 | imx35_3ds_init_camera(); | 593 | imx35_3ds_init_camera(); |
602 | 594 | ||