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/plat-mxc | |
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/plat-mxc')
-rw-r--r-- | arch/arm/plat-mxc/devices/platform-ipu-core.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/devices-common.h | 4 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/ipu.h | 4 |
3 files changed, 3 insertions, 10 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-ipu-core.c b/arch/arm/plat-mxc/devices/platform-ipu-core.c index 79d340ae0af1..d1e33cc6f12e 100644 --- a/arch/arm/plat-mxc/devices/platform-ipu-core.c +++ b/arch/arm/plat-mxc/devices/platform-ipu-core.c | |||
@@ -30,8 +30,7 @@ const struct imx_ipu_core_data imx35_ipu_core_data __initconst = | |||
30 | static struct platform_device *imx_ipu_coredev __initdata; | 30 | static struct platform_device *imx_ipu_coredev __initdata; |
31 | 31 | ||
32 | struct platform_device *__init imx_add_ipu_core( | 32 | struct platform_device *__init imx_add_ipu_core( |
33 | const struct imx_ipu_core_data *data, | 33 | const struct imx_ipu_core_data *data) |
34 | const struct ipu_platform_data *pdata) | ||
35 | { | 34 | { |
36 | /* The resource order is important! */ | 35 | /* The resource order is important! */ |
37 | struct resource res[] = { | 36 | struct resource res[] = { |
@@ -55,7 +54,7 @@ struct platform_device *__init imx_add_ipu_core( | |||
55 | }; | 54 | }; |
56 | 55 | ||
57 | return imx_ipu_coredev = imx_add_platform_device("ipu-core", -1, | 56 | return imx_ipu_coredev = imx_add_platform_device("ipu-core", -1, |
58 | res, ARRAY_SIZE(res), pdata, sizeof(*pdata)); | 57 | res, ARRAY_SIZE(res), NULL, 0); |
59 | } | 58 | } |
60 | 59 | ||
61 | struct platform_device *__init imx_alloc_mx3_camera( | 60 | struct platform_device *__init imx_alloc_mx3_camera( |
diff --git a/arch/arm/plat-mxc/include/mach/devices-common.h b/arch/arm/plat-mxc/include/mach/devices-common.h index 1b2258daa05b..a7f5bb1084d7 100644 --- a/arch/arm/plat-mxc/include/mach/devices-common.h +++ b/arch/arm/plat-mxc/include/mach/devices-common.h | |||
@@ -183,7 +183,6 @@ struct platform_device *__init imx_add_imx_udc( | |||
183 | const struct imx_imx_udc_data *data, | 183 | const struct imx_imx_udc_data *data, |
184 | const struct imxusb_platform_data *pdata); | 184 | const struct imxusb_platform_data *pdata); |
185 | 185 | ||
186 | #include <mach/ipu.h> | ||
187 | #include <mach/mx3fb.h> | 186 | #include <mach/mx3fb.h> |
188 | #include <mach/mx3_camera.h> | 187 | #include <mach/mx3_camera.h> |
189 | struct imx_ipu_core_data { | 188 | struct imx_ipu_core_data { |
@@ -192,8 +191,7 @@ struct imx_ipu_core_data { | |||
192 | resource_size_t errirq; | 191 | resource_size_t errirq; |
193 | }; | 192 | }; |
194 | struct platform_device *__init imx_add_ipu_core( | 193 | struct platform_device *__init imx_add_ipu_core( |
195 | const struct imx_ipu_core_data *data, | 194 | const struct imx_ipu_core_data *data); |
196 | const struct ipu_platform_data *pdata); | ||
197 | struct platform_device *__init imx_alloc_mx3_camera( | 195 | struct platform_device *__init imx_alloc_mx3_camera( |
198 | const struct imx_ipu_core_data *data, | 196 | const struct imx_ipu_core_data *data, |
199 | const struct mx3_camera_pdata *pdata); | 197 | const struct mx3_camera_pdata *pdata); |
diff --git a/arch/arm/plat-mxc/include/mach/ipu.h b/arch/arm/plat-mxc/include/mach/ipu.h index a9221f1cc1a0..539e559d18b2 100644 --- a/arch/arm/plat-mxc/include/mach/ipu.h +++ b/arch/arm/plat-mxc/include/mach/ipu.h | |||
@@ -110,10 +110,6 @@ enum ipu_rotate_mode { | |||
110 | IPU_ROTATE_90_LEFT = 7, | 110 | IPU_ROTATE_90_LEFT = 7, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | struct ipu_platform_data { | ||
114 | unsigned int irq_base; | ||
115 | }; | ||
116 | |||
117 | /* | 113 | /* |
118 | * Enumeration of DI ports for ADC. | 114 | * Enumeration of DI ports for ADC. |
119 | */ | 115 | */ |