diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2013-02-05 08:27:35 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-02-05 09:43:16 -0500 |
commit | 2deff8d602e8c9a2cab4b070be829294e1211f2c (patch) | |
tree | a276d1162d24a8a407c40e88dd1e97a3dd035491 /drivers/spi/spi-omap-uwire.c | |
parent | 75bf3361104157b6dcdadc895329a67b1c4f9617 (diff) |
spi: Remove erroneous __init, __exit and __exit_p() references in drivers
Some of the spi driver module remove hooks were annotated with __exit
and referenced with __exit_p(). Presumably these were supposed to be
__devinit, __devexit and __devexit_p() since __init/__exit for a
probe/remove hook has never been correct. They also got missed during
the big __devinit/__devexit purge since they didn't match the pattern.
Remove then now to be rid of it.
v2: purge __init also
Reported-by: Arnd Bergmann <arnd@arndb.de>
[Arnd set a patch cleaning up one, and then I found more]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi-omap-uwire.c')
-rw-r--r-- | drivers/spi/spi-omap-uwire.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c index 0a94d9dc9c31..102b233b50c4 100644 --- a/drivers/spi/spi-omap-uwire.c +++ b/drivers/spi/spi-omap-uwire.c | |||
@@ -476,7 +476,7 @@ static void uwire_off(struct uwire_spi *uwire) | |||
476 | spi_master_put(uwire->bitbang.master); | 476 | spi_master_put(uwire->bitbang.master); |
477 | } | 477 | } |
478 | 478 | ||
479 | static int __init uwire_probe(struct platform_device *pdev) | 479 | static int uwire_probe(struct platform_device *pdev) |
480 | { | 480 | { |
481 | struct spi_master *master; | 481 | struct spi_master *master; |
482 | struct uwire_spi *uwire; | 482 | struct uwire_spi *uwire; |
@@ -536,7 +536,7 @@ static int __init uwire_probe(struct platform_device *pdev) | |||
536 | return status; | 536 | return status; |
537 | } | 537 | } |
538 | 538 | ||
539 | static int __exit uwire_remove(struct platform_device *pdev) | 539 | static int uwire_remove(struct platform_device *pdev) |
540 | { | 540 | { |
541 | struct uwire_spi *uwire = dev_get_drvdata(&pdev->dev); | 541 | struct uwire_spi *uwire = dev_get_drvdata(&pdev->dev); |
542 | int status; | 542 | int status; |
@@ -557,7 +557,7 @@ static struct platform_driver uwire_driver = { | |||
557 | .name = "omap_uwire", | 557 | .name = "omap_uwire", |
558 | .owner = THIS_MODULE, | 558 | .owner = THIS_MODULE, |
559 | }, | 559 | }, |
560 | .remove = __exit_p(uwire_remove), | 560 | .remove = uwire_remove, |
561 | // suspend ... unuse ck | 561 | // suspend ... unuse ck |
562 | // resume ... use ck | 562 | // resume ... use ck |
563 | }; | 563 | }; |