diff options
Diffstat (limited to 'drivers/spi/spi_s3c24xx.c')
-rw-r--r-- | drivers/spi/spi_s3c24xx.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/spi/spi_s3c24xx.c b/drivers/spi/spi_s3c24xx.c index e9b683f7d7b3..89d6685a5ca4 100644 --- a/drivers/spi/spi_s3c24xx.c +++ b/drivers/spi/spi_s3c24xx.c | |||
@@ -233,7 +233,7 @@ static irqreturn_t s3c24xx_spi_irq(int irq, void *dev) | |||
233 | return IRQ_HANDLED; | 233 | return IRQ_HANDLED; |
234 | } | 234 | } |
235 | 235 | ||
236 | static int s3c24xx_spi_probe(struct platform_device *pdev) | 236 | static int __init s3c24xx_spi_probe(struct platform_device *pdev) |
237 | { | 237 | { |
238 | struct s3c24xx_spi *hw; | 238 | struct s3c24xx_spi *hw; |
239 | struct spi_master *master; | 239 | struct spi_master *master; |
@@ -382,7 +382,7 @@ static int s3c24xx_spi_probe(struct platform_device *pdev) | |||
382 | return err; | 382 | return err; |
383 | } | 383 | } |
384 | 384 | ||
385 | static int s3c24xx_spi_remove(struct platform_device *dev) | 385 | static int __exit s3c24xx_spi_remove(struct platform_device *dev) |
386 | { | 386 | { |
387 | struct s3c24xx_spi *hw = platform_get_drvdata(dev); | 387 | struct s3c24xx_spi *hw = platform_get_drvdata(dev); |
388 | 388 | ||
@@ -429,8 +429,7 @@ static int s3c24xx_spi_resume(struct platform_device *pdev) | |||
429 | 429 | ||
430 | MODULE_ALIAS("s3c2410_spi"); /* for platform bus hotplug */ | 430 | MODULE_ALIAS("s3c2410_spi"); /* for platform bus hotplug */ |
431 | static struct platform_driver s3c24xx_spidrv = { | 431 | static struct platform_driver s3c24xx_spidrv = { |
432 | .probe = s3c24xx_spi_probe, | 432 | .remove = __exit_p(s3c24xx_spi_remove), |
433 | .remove = s3c24xx_spi_remove, | ||
434 | .suspend = s3c24xx_spi_suspend, | 433 | .suspend = s3c24xx_spi_suspend, |
435 | .resume = s3c24xx_spi_resume, | 434 | .resume = s3c24xx_spi_resume, |
436 | .driver = { | 435 | .driver = { |
@@ -441,7 +440,7 @@ static struct platform_driver s3c24xx_spidrv = { | |||
441 | 440 | ||
442 | static int __init s3c24xx_spi_init(void) | 441 | static int __init s3c24xx_spi_init(void) |
443 | { | 442 | { |
444 | return platform_driver_register(&s3c24xx_spidrv); | 443 | return platform_driver_probe(&s3c24xx_spidrv, s3c24xx_spi_probe); |
445 | } | 444 | } |
446 | 445 | ||
447 | static void __exit s3c24xx_spi_exit(void) | 446 | static void __exit s3c24xx_spi_exit(void) |