diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-05-25 02:38:26 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-25 02:38:26 -0400 |
commit | b1e50ebcf24668e57f058deb48b0704b5391ed0f (patch) | |
tree | 17e1b69b249d0738317b732186340c9dd053f1a1 /drivers/serial/mpc52xx_uart.c | |
parent | 0c2a2ae32793e3500a15a449612485f5d17dd431 (diff) | |
parent | 7e125f7b9cbfce4101191b8076d606c517a73066 (diff) |
Merge remote branch 'origin' into secretlab/next-spi
Diffstat (limited to 'drivers/serial/mpc52xx_uart.c')
-rw-r--r-- | drivers/serial/mpc52xx_uart.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c index f0ca448a1ebf..84a35f699016 100644 --- a/drivers/serial/mpc52xx_uart.c +++ b/drivers/serial/mpc52xx_uart.c | |||
@@ -1226,14 +1226,14 @@ mpc52xx_uart_of_probe(struct of_device *op, const struct of_device_id *match) | |||
1226 | 1226 | ||
1227 | /* Check validity & presence */ | 1227 | /* Check validity & presence */ |
1228 | for (idx = 0; idx < MPC52xx_PSC_MAXNUM; idx++) | 1228 | for (idx = 0; idx < MPC52xx_PSC_MAXNUM; idx++) |
1229 | if (mpc52xx_uart_nodes[idx] == op->node) | 1229 | if (mpc52xx_uart_nodes[idx] == op->dev.of_node) |
1230 | break; | 1230 | break; |
1231 | if (idx >= MPC52xx_PSC_MAXNUM) | 1231 | if (idx >= MPC52xx_PSC_MAXNUM) |
1232 | return -EINVAL; | 1232 | return -EINVAL; |
1233 | pr_debug("Found %s assigned to ttyPSC%x\n", | 1233 | pr_debug("Found %s assigned to ttyPSC%x\n", |
1234 | mpc52xx_uart_nodes[idx]->full_name, idx); | 1234 | mpc52xx_uart_nodes[idx]->full_name, idx); |
1235 | 1235 | ||
1236 | uartclk = psc_ops->getuartclk(op->node); | 1236 | uartclk = psc_ops->getuartclk(op->dev.of_node); |
1237 | if (uartclk == 0) { | 1237 | if (uartclk == 0) { |
1238 | dev_dbg(&op->dev, "Could not find uart clock frequency!\n"); | 1238 | dev_dbg(&op->dev, "Could not find uart clock frequency!\n"); |
1239 | return -EINVAL; | 1239 | return -EINVAL; |
@@ -1253,7 +1253,7 @@ mpc52xx_uart_of_probe(struct of_device *op, const struct of_device_id *match) | |||
1253 | port->dev = &op->dev; | 1253 | port->dev = &op->dev; |
1254 | 1254 | ||
1255 | /* Search for IRQ and mapbase */ | 1255 | /* Search for IRQ and mapbase */ |
1256 | ret = of_address_to_resource(op->node, 0, &res); | 1256 | ret = of_address_to_resource(op->dev.of_node, 0, &res); |
1257 | if (ret) | 1257 | if (ret) |
1258 | return ret; | 1258 | return ret; |
1259 | 1259 | ||
@@ -1263,7 +1263,7 @@ mpc52xx_uart_of_probe(struct of_device *op, const struct of_device_id *match) | |||
1263 | return -EINVAL; | 1263 | return -EINVAL; |
1264 | } | 1264 | } |
1265 | 1265 | ||
1266 | psc_ops->get_irq(port, op->node); | 1266 | psc_ops->get_irq(port, op->dev.of_node); |
1267 | if (port->irq == NO_IRQ) { | 1267 | if (port->irq == NO_IRQ) { |
1268 | dev_dbg(&op->dev, "Could not get irq\n"); | 1268 | dev_dbg(&op->dev, "Could not get irq\n"); |
1269 | return -EINVAL; | 1269 | return -EINVAL; |
@@ -1362,15 +1362,16 @@ mpc52xx_uart_of_enumerate(void) | |||
1362 | MODULE_DEVICE_TABLE(of, mpc52xx_uart_of_match); | 1362 | MODULE_DEVICE_TABLE(of, mpc52xx_uart_of_match); |
1363 | 1363 | ||
1364 | static struct of_platform_driver mpc52xx_uart_of_driver = { | 1364 | static struct of_platform_driver mpc52xx_uart_of_driver = { |
1365 | .match_table = mpc52xx_uart_of_match, | ||
1366 | .probe = mpc52xx_uart_of_probe, | 1365 | .probe = mpc52xx_uart_of_probe, |
1367 | .remove = mpc52xx_uart_of_remove, | 1366 | .remove = mpc52xx_uart_of_remove, |
1368 | #ifdef CONFIG_PM | 1367 | #ifdef CONFIG_PM |
1369 | .suspend = mpc52xx_uart_of_suspend, | 1368 | .suspend = mpc52xx_uart_of_suspend, |
1370 | .resume = mpc52xx_uart_of_resume, | 1369 | .resume = mpc52xx_uart_of_resume, |
1371 | #endif | 1370 | #endif |
1372 | .driver = { | 1371 | .driver = { |
1373 | .name = "mpc52xx-psc-uart", | 1372 | .name = "mpc52xx-psc-uart", |
1373 | .owner = THIS_MODULE, | ||
1374 | .of_match_table = mpc52xx_uart_of_match, | ||
1374 | }, | 1375 | }, |
1375 | }; | 1376 | }; |
1376 | 1377 | ||