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-au1550.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-au1550.c')
-rw-r--r-- | drivers/spi/spi-au1550.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c index 4de66d1cfe51..44dd34b6ad09 100644 --- a/drivers/spi/spi-au1550.c +++ b/drivers/spi/spi-au1550.c | |||
@@ -717,7 +717,7 @@ static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw) | |||
717 | } | 717 | } |
718 | } | 718 | } |
719 | 719 | ||
720 | static void __init au1550_spi_setup_psc_as_spi(struct au1550_spi *hw) | 720 | static void au1550_spi_setup_psc_as_spi(struct au1550_spi *hw) |
721 | { | 721 | { |
722 | u32 stat, cfg; | 722 | u32 stat, cfg; |
723 | 723 | ||
@@ -766,7 +766,7 @@ static void __init au1550_spi_setup_psc_as_spi(struct au1550_spi *hw) | |||
766 | } | 766 | } |
767 | 767 | ||
768 | 768 | ||
769 | static int __init au1550_spi_probe(struct platform_device *pdev) | 769 | static int au1550_spi_probe(struct platform_device *pdev) |
770 | { | 770 | { |
771 | struct au1550_spi *hw; | 771 | struct au1550_spi *hw; |
772 | struct spi_master *master; | 772 | struct spi_master *master; |
@@ -968,7 +968,7 @@ err_nomem: | |||
968 | return err; | 968 | return err; |
969 | } | 969 | } |
970 | 970 | ||
971 | static int __exit au1550_spi_remove(struct platform_device *pdev) | 971 | static int au1550_spi_remove(struct platform_device *pdev) |
972 | { | 972 | { |
973 | struct au1550_spi *hw = platform_get_drvdata(pdev); | 973 | struct au1550_spi *hw = platform_get_drvdata(pdev); |
974 | 974 | ||
@@ -997,7 +997,7 @@ static int __exit au1550_spi_remove(struct platform_device *pdev) | |||
997 | MODULE_ALIAS("platform:au1550-spi"); | 997 | MODULE_ALIAS("platform:au1550-spi"); |
998 | 998 | ||
999 | static struct platform_driver au1550_spi_drv = { | 999 | static struct platform_driver au1550_spi_drv = { |
1000 | .remove = __exit_p(au1550_spi_remove), | 1000 | .remove = au1550_spi_remove, |
1001 | .driver = { | 1001 | .driver = { |
1002 | .name = "au1550-spi", | 1002 | .name = "au1550-spi", |
1003 | .owner = THIS_MODULE, | 1003 | .owner = THIS_MODULE, |