diff options
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r-- | drivers/spi/spi-gpio.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 0e88ab745490..635ff08b377f 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c | |||
@@ -311,7 +311,7 @@ done: | |||
311 | return value; | 311 | return value; |
312 | } | 312 | } |
313 | 313 | ||
314 | static int __init spi_gpio_probe(struct platform_device *pdev) | 314 | static int __devinit spi_gpio_probe(struct platform_device *pdev) |
315 | { | 315 | { |
316 | int status; | 316 | int status; |
317 | struct spi_master *master; | 317 | struct spi_master *master; |
@@ -379,7 +379,7 @@ gpio_free: | |||
379 | return status; | 379 | return status; |
380 | } | 380 | } |
381 | 381 | ||
382 | static int __exit spi_gpio_remove(struct platform_device *pdev) | 382 | static int __devexit spi_gpio_remove(struct platform_device *pdev) |
383 | { | 383 | { |
384 | struct spi_gpio *spi_gpio; | 384 | struct spi_gpio *spi_gpio; |
385 | struct spi_gpio_platform_data *pdata; | 385 | struct spi_gpio_platform_data *pdata; |
@@ -408,21 +408,10 @@ MODULE_ALIAS("platform:" DRIVER_NAME); | |||
408 | static struct platform_driver spi_gpio_driver = { | 408 | static struct platform_driver spi_gpio_driver = { |
409 | .driver.name = DRIVER_NAME, | 409 | .driver.name = DRIVER_NAME, |
410 | .driver.owner = THIS_MODULE, | 410 | .driver.owner = THIS_MODULE, |
411 | .remove = __exit_p(spi_gpio_remove), | 411 | .probe = spi_gpio_probe, |
412 | .remove = __devexit_p(spi_gpio_remove), | ||
412 | }; | 413 | }; |
413 | 414 | module_platform_driver(spi_gpio_driver); | |
414 | static int __init spi_gpio_init(void) | ||
415 | { | ||
416 | return platform_driver_probe(&spi_gpio_driver, spi_gpio_probe); | ||
417 | } | ||
418 | module_init(spi_gpio_init); | ||
419 | |||
420 | static void __exit spi_gpio_exit(void) | ||
421 | { | ||
422 | platform_driver_unregister(&spi_gpio_driver); | ||
423 | } | ||
424 | module_exit(spi_gpio_exit); | ||
425 | |||
426 | 415 | ||
427 | MODULE_DESCRIPTION("SPI master driver using generic bitbanged GPIO "); | 416 | MODULE_DESCRIPTION("SPI master driver using generic bitbanged GPIO "); |
428 | MODULE_AUTHOR("David Brownell"); | 417 | MODULE_AUTHOR("David Brownell"); |