diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-29 10:28:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-29 10:28:36 -0400 |
commit | 18c0635363364ca2fc2d1cbd65bbf918daf89d1a (patch) | |
tree | 6fd1975977b4ab190b77952ee8e263f66e3dc5f7 /drivers/spi/spi-gpio.c | |
parent | 41684f67af75b04152a1714e1a5375dfb00ee3da (diff) | |
parent | 940ab88962bc1aff3273a8356d64577a6e386736 (diff) |
Merge branch 'spi/next' of git://git.secretlab.ca/git/linux-2.6
* 'spi/next' of git://git.secretlab.ca/git/linux-2.6:
drivercore: Add helper macro for platform_driver boilerplate
spi: irq: Remove IRQF_DISABLED
OMAP: SPI: Fix the trying to free nonexistent resource error
spi/spi-ep93xx: add module.h include
spi/tegra: fix compilation error in spi-tegra.c
spi: spi-dw: fix all sparse warnings
spi/spi-pl022: Call pl022_dma_remove(pl022) only if enable_dma is true
spi/spi-pl022: calculate_effective_freq() must set rate <= requested rate
spi/spi-pl022: Don't allocate more sg than required.
spi/spi-pl022: Use GFP_ATOMIC for allocation from tasklet
spi/spi-pl022: Resolve formatting issues
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"); |