diff options
Diffstat (limited to 'drivers/spi/mpc512x_psc_spi.c')
-rw-r--r-- | drivers/spi/mpc512x_psc_spi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/spi/mpc512x_psc_spi.c b/drivers/spi/mpc512x_psc_spi.c index 2534b1ec3edd..cddbfceb324f 100644 --- a/drivers/spi/mpc512x_psc_spi.c +++ b/drivers/spi/mpc512x_psc_spi.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/errno.h> | 20 | #include <linux/errno.h> |
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/of_address.h> | ||
22 | #include <linux/of_platform.h> | 23 | #include <linux/of_platform.h> |
23 | #include <linux/workqueue.h> | 24 | #include <linux/workqueue.h> |
24 | #include <linux/completion.h> | 25 | #include <linux/completion.h> |
@@ -440,6 +441,7 @@ static int __init mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr, | |||
440 | master->setup = mpc512x_psc_spi_setup; | 441 | master->setup = mpc512x_psc_spi_setup; |
441 | master->transfer = mpc512x_psc_spi_transfer; | 442 | master->transfer = mpc512x_psc_spi_transfer; |
442 | master->cleanup = mpc512x_psc_spi_cleanup; | 443 | master->cleanup = mpc512x_psc_spi_cleanup; |
444 | master->dev.of_node = dev->of_node; | ||
443 | 445 | ||
444 | tempp = ioremap(regaddr, size); | 446 | tempp = ioremap(regaddr, size); |
445 | if (!tempp) { | 447 | if (!tempp) { |
@@ -505,7 +507,7 @@ static int __exit mpc512x_psc_spi_do_remove(struct device *dev) | |||
505 | return 0; | 507 | return 0; |
506 | } | 508 | } |
507 | 509 | ||
508 | static int __init mpc512x_psc_spi_of_probe(struct of_device *op, | 510 | static int __init mpc512x_psc_spi_of_probe(struct platform_device *op, |
509 | const struct of_device_id *match) | 511 | const struct of_device_id *match) |
510 | { | 512 | { |
511 | const u32 *regaddr_p; | 513 | const u32 *regaddr_p; |
@@ -537,7 +539,7 @@ static int __init mpc512x_psc_spi_of_probe(struct of_device *op, | |||
537 | irq_of_parse_and_map(op->dev.of_node, 0), id); | 539 | irq_of_parse_and_map(op->dev.of_node, 0), id); |
538 | } | 540 | } |
539 | 541 | ||
540 | static int __exit mpc512x_psc_spi_of_remove(struct of_device *op) | 542 | static int __exit mpc512x_psc_spi_of_remove(struct platform_device *op) |
541 | { | 543 | { |
542 | return mpc512x_psc_spi_do_remove(&op->dev); | 544 | return mpc512x_psc_spi_do_remove(&op->dev); |
543 | } | 545 | } |