diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-02-07 00:29:25 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-02-07 00:29:25 -0500 |
commit | 52b804829ca4cf3d1d9849232dadf67269cd89f4 (patch) | |
tree | 030a1b1d18f967ed1c3a86a78f3444b6594152d0 /drivers/serial/mpc52xx_uart.c | |
parent | de0723dcca6e593a12a259798a54eb0e82628fb8 (diff) |
[POWERPC] mpc52xx: fix compile error introduce when rebasing patch
When rebasing one of the mpc5200 psc UART patches I made a mistake and
damaged the patch.
This patch fixes the compile failure introduced in commit
25ae3a0739c69425a911925b43213895a9802b98
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/serial/mpc52xx_uart.c')
-rw-r--r-- | drivers/serial/mpc52xx_uart.c | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c index 821facd10bbc..a638f23c6c61 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c | |||
@@ -131,31 +131,6 @@ static irqreturn_t mpc52xx_uart_int(int irq, void *dev_id); | |||
131 | #define uart_console(port) (0) | 131 | #define uart_console(port) (0) |
132 | #endif | 132 | #endif |
133 | 133 | ||
134 | #if defined(CONFIG_PPC_MERGE) | ||
135 | static struct of_device_id mpc52xx_uart_of_match[] = { | ||
136 | #ifdef CONFIG_PPC_MPC52xx | ||
137 | { .compatible = "fsl,mpc5200-psc-uart", .data = &mpc52xx_psc_ops, }, | ||
138 | /* binding used by old lite5200 device trees: */ | ||
139 | { .compatible = "mpc5200-psc-uart", .data = &mpc52xx_psc_ops, }, | ||
140 | /* binding used by efika: */ | ||
141 | { .compatible = "mpc5200-serial", .data = &mpc52xx_psc_ops, }, | ||
142 | #endif | ||
143 | #ifdef CONFIG_PPC_MPC512x | ||
144 | { .compatible = "fsl,mpc5121-psc-uart", .data = &mpc512x_psc_ops, }, | ||
145 | {}, | ||
146 | #endif | ||
147 | }; | ||
148 | #if defined(CONFIG_PPC_MERGE) | ||
149 | static const struct of_device_id mpc52xx_uart_of_match[] = { | ||
150 | {.type = "serial", | ||
151 | .compatible = "mpc5200-psc-uart", | ||
152 | #endif | ||
153 | {}, | ||
154 | }; | ||
155 | #endif | ||
156 | |||
157 | #endif | ||
158 | |||
159 | /* ======================================================================== */ | 134 | /* ======================================================================== */ |
160 | /* PSC fifo operations for isolating differences between 52xx and 512x */ | 135 | /* PSC fifo operations for isolating differences between 52xx and 512x */ |
161 | /* ======================================================================== */ | 136 | /* ======================================================================== */ |
@@ -1234,6 +1209,20 @@ static struct platform_driver mpc52xx_uart_platform_driver = { | |||
1234 | /* OF Platform Driver */ | 1209 | /* OF Platform Driver */ |
1235 | /* ======================================================================== */ | 1210 | /* ======================================================================== */ |
1236 | 1211 | ||
1212 | static struct of_device_id mpc52xx_uart_of_match[] = { | ||
1213 | #ifdef CONFIG_PPC_MPC52xx | ||
1214 | { .compatible = "fsl,mpc5200-psc-uart", .data = &mpc52xx_psc_ops, }, | ||
1215 | /* binding used by old lite5200 device trees: */ | ||
1216 | { .compatible = "mpc5200-psc-uart", .data = &mpc52xx_psc_ops, }, | ||
1217 | /* binding used by efika: */ | ||
1218 | { .compatible = "mpc5200-serial", .data = &mpc52xx_psc_ops, }, | ||
1219 | #endif | ||
1220 | #ifdef CONFIG_PPC_MPC512x | ||
1221 | { .compatible = "fsl,mpc5121-psc-uart", .data = &mpc512x_psc_ops, }, | ||
1222 | {}, | ||
1223 | #endif | ||
1224 | }; | ||
1225 | |||
1237 | static int __devinit | 1226 | static int __devinit |
1238 | mpc52xx_uart_of_probe(struct of_device *op, const struct of_device_id *match) | 1227 | mpc52xx_uart_of_probe(struct of_device *op, const struct of_device_id *match) |
1239 | { | 1228 | { |