diff options
| -rw-r--r-- | drivers/spi/mpc512x_psc_spi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/spi/mpc512x_psc_spi.c b/drivers/spi/mpc512x_psc_spi.c index 2534b1ec3edd..c8d69fc393ab 100644 --- a/drivers/spi/mpc512x_psc_spi.c +++ b/drivers/spi/mpc512x_psc_spi.c | |||
| @@ -405,9 +405,9 @@ static irqreturn_t mpc512x_psc_spi_isr(int irq, void *dev_id) | |||
| 405 | } | 405 | } |
| 406 | 406 | ||
| 407 | /* bus_num is used only for the case dev->platform_data == NULL */ | 407 | /* bus_num is used only for the case dev->platform_data == NULL */ |
| 408 | static int __init mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr, | 408 | static int __devinit mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr, |
| 409 | u32 size, unsigned int irq, | 409 | u32 size, unsigned int irq, |
| 410 | s16 bus_num) | 410 | s16 bus_num) |
| 411 | { | 411 | { |
| 412 | struct fsl_spi_platform_data *pdata = dev->platform_data; | 412 | struct fsl_spi_platform_data *pdata = dev->platform_data; |
| 413 | struct mpc512x_psc_spi *mps; | 413 | struct mpc512x_psc_spi *mps; |
| @@ -490,7 +490,7 @@ free_master: | |||
| 490 | return ret; | 490 | return ret; |
| 491 | } | 491 | } |
| 492 | 492 | ||
| 493 | static int __exit mpc512x_psc_spi_do_remove(struct device *dev) | 493 | static int __devexit mpc512x_psc_spi_do_remove(struct device *dev) |
| 494 | { | 494 | { |
| 495 | struct spi_master *master = dev_get_drvdata(dev); | 495 | struct spi_master *master = dev_get_drvdata(dev); |
| 496 | struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); | 496 | struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); |
| @@ -505,8 +505,8 @@ static int __exit mpc512x_psc_spi_do_remove(struct device *dev) | |||
| 505 | return 0; | 505 | return 0; |
| 506 | } | 506 | } |
| 507 | 507 | ||
| 508 | static int __init mpc512x_psc_spi_of_probe(struct of_device *op, | 508 | static int __devinit mpc512x_psc_spi_of_probe(struct of_device *op, |
| 509 | const struct of_device_id *match) | 509 | const struct of_device_id *match) |
| 510 | { | 510 | { |
| 511 | const u32 *regaddr_p; | 511 | const u32 *regaddr_p; |
| 512 | u64 regaddr64, size64; | 512 | u64 regaddr64, size64; |
| @@ -537,7 +537,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); | 537 | irq_of_parse_and_map(op->dev.of_node, 0), id); |
| 538 | } | 538 | } |
| 539 | 539 | ||
| 540 | static int __exit mpc512x_psc_spi_of_remove(struct of_device *op) | 540 | static int __devexit mpc512x_psc_spi_of_remove(struct of_device *op) |
| 541 | { | 541 | { |
| 542 | return mpc512x_psc_spi_do_remove(&op->dev); | 542 | return mpc512x_psc_spi_do_remove(&op->dev); |
| 543 | } | 543 | } |
| @@ -551,7 +551,7 @@ MODULE_DEVICE_TABLE(of, mpc512x_psc_spi_of_match); | |||
| 551 | 551 | ||
| 552 | static struct of_platform_driver mpc512x_psc_spi_of_driver = { | 552 | static struct of_platform_driver mpc512x_psc_spi_of_driver = { |
| 553 | .probe = mpc512x_psc_spi_of_probe, | 553 | .probe = mpc512x_psc_spi_of_probe, |
| 554 | .remove = __exit_p(mpc512x_psc_spi_of_remove), | 554 | .remove = __devexit_p(mpc512x_psc_spi_of_remove), |
| 555 | .driver = { | 555 | .driver = { |
| 556 | .name = "mpc512x-psc-spi", | 556 | .name = "mpc512x-psc-spi", |
| 557 | .owner = THIS_MODULE, | 557 | .owner = THIS_MODULE, |
