aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-omap-100k.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2013-02-05 08:27:35 -0500
committerGrant Likely <grant.likely@secretlab.ca>2013-02-05 09:43:16 -0500
commit2deff8d602e8c9a2cab4b070be829294e1211f2c (patch)
treea276d1162d24a8a407c40e88dd1e97a3dd035491 /drivers/spi/spi-omap-100k.c
parent75bf3361104157b6dcdadc895329a67b1c4f9617 (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-100k.c')
-rw-r--r--drivers/spi/spi-omap-100k.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c
index 3aef7fa7d5b8..78d29a18dcc4 100644
--- a/drivers/spi/spi-omap-100k.c
+++ b/drivers/spi/spi-omap-100k.c
@@ -481,7 +481,7 @@ static int omap1_spi100k_transfer(struct spi_device *spi, struct spi_message *m)
481 return 0; 481 return 0;
482} 482}
483 483
484static int __init omap1_spi100k_reset(struct omap1_spi100k *spi100k) 484static int omap1_spi100k_reset(struct omap1_spi100k *spi100k)
485{ 485{
486 return 0; 486 return 0;
487} 487}
@@ -560,7 +560,7 @@ err1:
560 return status; 560 return status;
561} 561}
562 562
563static int __exit omap1_spi100k_remove(struct platform_device *pdev) 563static int omap1_spi100k_remove(struct platform_device *pdev)
564{ 564{
565 struct spi_master *master; 565 struct spi_master *master;
566 struct omap1_spi100k *spi100k; 566 struct omap1_spi100k *spi100k;
@@ -604,7 +604,7 @@ static struct platform_driver omap1_spi100k_driver = {
604 .name = "omap1_spi100k", 604 .name = "omap1_spi100k",
605 .owner = THIS_MODULE, 605 .owner = THIS_MODULE,
606 }, 606 },
607 .remove = __exit_p(omap1_spi100k_remove), 607 .remove = omap1_spi100k_remove,
608}; 608};
609 609
610 610