diff options
-rw-r--r-- | arch/arm/mach-mxs/devices-mx28.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-mxs/devices/platform-mxs-i2c.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-mxs/include/mach/devices-common.h | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/mach-mxs/devices-mx28.h b/arch/arm/mach-mxs/devices-mx28.h index c473eddce8cf..79b94523954a 100644 --- a/arch/arm/mach-mxs/devices-mx28.h +++ b/arch/arm/mach-mxs/devices-mx28.h | |||
@@ -34,7 +34,7 @@ extern const struct mxs_flexcan_data mx28_flexcan_data[] __initconst; | |||
34 | #define mx28_add_flexcan0(pdata) mx28_add_flexcan(0, pdata) | 34 | #define mx28_add_flexcan0(pdata) mx28_add_flexcan(0, pdata) |
35 | #define mx28_add_flexcan1(pdata) mx28_add_flexcan(1, pdata) | 35 | #define mx28_add_flexcan1(pdata) mx28_add_flexcan(1, pdata) |
36 | 36 | ||
37 | extern const struct mxs_i2c_data mx28_mxs_i2c_data[] __initconst; | 37 | extern const struct mxs_mxs_i2c_data mx28_mxs_i2c_data[] __initconst; |
38 | #define mx28_add_mxs_i2c(id) mxs_add_mxs_i2c(&mx28_mxs_i2c_data[id]) | 38 | #define mx28_add_mxs_i2c(id) mxs_add_mxs_i2c(&mx28_mxs_i2c_data[id]) |
39 | 39 | ||
40 | extern const struct mxs_mxs_mmc_data mx28_mxs_mmc_data[] __initconst; | 40 | extern const struct mxs_mxs_mmc_data mx28_mxs_mmc_data[] __initconst; |
diff --git a/arch/arm/mach-mxs/devices/platform-mxs-i2c.c b/arch/arm/mach-mxs/devices/platform-mxs-i2c.c index eab3a06836d6..79222ec8ede1 100644 --- a/arch/arm/mach-mxs/devices/platform-mxs-i2c.c +++ b/arch/arm/mach-mxs/devices/platform-mxs-i2c.c | |||
@@ -22,13 +22,14 @@ | |||
22 | [_id] = mxs_i2c_data_entry_single(soc, _id) | 22 | [_id] = mxs_i2c_data_entry_single(soc, _id) |
23 | 23 | ||
24 | #ifdef CONFIG_SOC_IMX28 | 24 | #ifdef CONFIG_SOC_IMX28 |
25 | const struct mxs_i2c_data mx28_mxs_i2c_data[] __initconst = { | 25 | const struct mxs_mxs_i2c_data mx28_mxs_i2c_data[] __initconst = { |
26 | mxs_i2c_data_entry(MX28, 0), | 26 | mxs_i2c_data_entry(MX28, 0), |
27 | mxs_i2c_data_entry(MX28, 1), | 27 | mxs_i2c_data_entry(MX28, 1), |
28 | }; | 28 | }; |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | struct platform_device *__init mxs_add_mxs_i2c(const struct mxs_i2c_data *data) | 31 | struct platform_device *__init mxs_add_mxs_i2c( |
32 | const struct mxs_mxs_i2c_data *data) | ||
32 | { | 33 | { |
33 | struct resource res[] = { | 34 | struct resource res[] = { |
34 | { | 35 | { |
diff --git a/arch/arm/mach-mxs/include/mach/devices-common.h b/arch/arm/mach-mxs/include/mach/devices-common.h index c5137f14c364..7a37469ed5bf 100644 --- a/arch/arm/mach-mxs/include/mach/devices-common.h +++ b/arch/arm/mach-mxs/include/mach/devices-common.h | |||
@@ -65,13 +65,14 @@ struct platform_device *__init mxs_add_flexcan( | |||
65 | const struct flexcan_platform_data *pdata); | 65 | const struct flexcan_platform_data *pdata); |
66 | 66 | ||
67 | /* i2c */ | 67 | /* i2c */ |
68 | struct mxs_i2c_data { | 68 | struct mxs_mxs_i2c_data { |
69 | int id; | 69 | int id; |
70 | resource_size_t iobase; | 70 | resource_size_t iobase; |
71 | resource_size_t errirq; | 71 | resource_size_t errirq; |
72 | resource_size_t dmairq; | 72 | resource_size_t dmairq; |
73 | }; | 73 | }; |
74 | struct platform_device * __init mxs_add_mxs_i2c(const struct mxs_i2c_data *data); | 74 | struct platform_device * __init mxs_add_mxs_i2c( |
75 | const struct mxs_mxs_i2c_data *data); | ||
75 | 76 | ||
76 | /* mmc */ | 77 | /* mmc */ |
77 | #include <mach/mmc.h> | 78 | #include <mach/mmc.h> |