diff options
Diffstat (limited to 'drivers/spi/spi_mpc83xx.c')
-rw-r--r-- | drivers/spi/spi_mpc83xx.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/spi/spi_mpc83xx.c b/drivers/spi/spi_mpc83xx.c index 32cda77b31cd..4580b9cf625d 100644 --- a/drivers/spi/spi_mpc83xx.c +++ b/drivers/spi/spi_mpc83xx.c | |||
@@ -511,7 +511,7 @@ err: | |||
511 | return ret; | 511 | return ret; |
512 | } | 512 | } |
513 | 513 | ||
514 | static int __devexit mpc83xx_spi_remove(struct platform_device *dev) | 514 | static int __exit mpc83xx_spi_remove(struct platform_device *dev) |
515 | { | 515 | { |
516 | struct mpc83xx_spi *mpc83xx_spi; | 516 | struct mpc83xx_spi *mpc83xx_spi; |
517 | struct spi_master *master; | 517 | struct spi_master *master; |
@@ -529,8 +529,7 @@ static int __devexit mpc83xx_spi_remove(struct platform_device *dev) | |||
529 | 529 | ||
530 | MODULE_ALIAS("mpc83xx_spi"); /* for platform bus hotplug */ | 530 | MODULE_ALIAS("mpc83xx_spi"); /* for platform bus hotplug */ |
531 | static struct platform_driver mpc83xx_spi_driver = { | 531 | static struct platform_driver mpc83xx_spi_driver = { |
532 | .probe = mpc83xx_spi_probe, | 532 | .remove = __exit_p(mpc83xx_spi_remove), |
533 | .remove = __devexit_p(mpc83xx_spi_remove), | ||
534 | .driver = { | 533 | .driver = { |
535 | .name = "mpc83xx_spi", | 534 | .name = "mpc83xx_spi", |
536 | }, | 535 | }, |
@@ -538,7 +537,7 @@ static struct platform_driver mpc83xx_spi_driver = { | |||
538 | 537 | ||
539 | static int __init mpc83xx_spi_init(void) | 538 | static int __init mpc83xx_spi_init(void) |
540 | { | 539 | { |
541 | return platform_driver_register(&mpc83xx_spi_driver); | 540 | return platform_driver_probe(&mpc83xx_spi_driver, mpc83xx_spi_probe); |
542 | } | 541 | } |
543 | 542 | ||
544 | static void __exit mpc83xx_spi_exit(void) | 543 | static void __exit mpc83xx_spi_exit(void) |