spi: Remove erroneous __exit and __exit_p() references in drivers
Subsystems (3)
PATCH 1/1 spi: Remove erroneous __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 __devexit and __devexit_p() since __exit for a remove hook has never been correct. They also got missed during the big __devexit purge since they didn't match the pattern. Remove then now to be rid of it.
Reported-by Arnd Bergmann <[email protected]>
[Arnd set a patch cleaning up one, and then I found more]
Signed-off-by Grant Likely <grant.likely-s3s/[email protected]>
--- drivers/spi/spi-atmel.c | 2 +- drivers/spi/spi-au1550.c | 4 ++-- drivers/spi/spi-omap-100k.c | 4 ++-- drivers/spi/spi-omap-uwire.c | 4 ++-- drivers/spi/spi-orion.c | 4 ++-- drivers/spi/spi-ppc4xx.c | 4 ++-- drivers/spi/spi-txx9.c | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-)
drivers/spi/spi-atmel.c +1 -1
@@ -1088,7 +1088,7 @@ static struct platform_driver atmel_spi_driver = { .suspend = atmel_spi_suspend, .resume = atmel_spi_resume, .probe = atmel_spi_probe, - .remove = __exit_p(atmel_spi_remove), + .remove = atmel_spi_remove, };module_platform_driver (atmel_spi_driver);
drivers/spi/spi-au1550.c +2 -2
@@ -968,7 +968,7 @@ err_nomem:return err; } -static int __exit au1550_spi_remove(struct platform_device *pdev) +static int au1550_spi_remove (struct platform_device *pdev) {struct au1550_spi *hw =platform_get_drvdata (pdev);
@@ -997,7 +997,7 @@ static int __exit au1550_spi_remove(struct platform_device *pdev)MODULE_ALIAS ("platform:au1550-spi" );static struct platform_driver au1550_spi_drv = { - .remove =__exit_p (au1550_spi_remove), + .remove = au1550_spi_remove, .driver = { .name ="au1550-spi" , .owner =THIS_MODULE ,
drivers/spi/spi-omap-100k.c +2 -2
@@ -560,7 +560,7 @@ err1:return status; } -static int __exit omap1_spi100k_remove(struct platform_device *pdev) +static int omap1_spi100k_remove (struct platform_device *pdev) {struct spi_master *master;struct omap1_spi100k *spi100k;
@@ -604,7 +604,7 @@ static struct platform_driver omap1_spi100k_driver = { .name = "omap1_spi100k", .owner = THIS_MODULE, }, - .remove = __exit_p(omap1_spi100k_remove), + .remove = omap1_spi100k_remove, };
drivers/spi/spi-omap-uwire.c +2 -2
@@ -536,7 +536,7 @@ static int __init uwire_probe(struct platform_device *pdev)return status; } -static int __exit uwire_remove(struct platform_device *pdev) +static int uwire_remove (struct platform_device *pdev) {struct uwire_spi *uwire =dev_get_drvdata (&pdev->dev);int status;
@@ -557,7 +557,7 @@ static struct platform_driver uwire_driver = { .name = "omap_uwire", .owner = THIS_MODULE, }, - .remove = __exit_p(uwire_remove), + .remove = uwire_remove,// suspend ... unuse ck // resume ... use ck };
drivers/spi/spi-orion.c +2 -2
@@ -479,7 +479,7 @@ out: } -static int __exit orion_spi_remove(struct platform_device *pdev) +static int orion_spi_remove (struct platform_device *pdev) {struct spi_master *master;struct resource *r;
@@ -513,7 +513,7 @@ static struct platform_driver orion_spi_driver = { .owner = THIS_MODULE, .of_match_table = of_match_ptr(orion_spi_of_match_table), }, - .remove = __exit_p(orion_spi_remove), + .remove = orion_spi_remove, };static int __init orion_spi_init (void )
drivers/spi/spi-ppc4xx.c +2 -2
@@ -560,7 +560,7 @@ free_master:return ret; } -static int __exit spi_ppc4xx_of_remove(struct platform_device *op) +static int spi_ppc4xx_of_remove (struct platform_device *op) {struct spi_master *master =dev_get_drvdata (&op->dev);struct ppc4xx_spi *hw =spi_master_get_devdata (master);
@@ -583,7 +583,7 @@ MODULE_DEVICE_TABLE(of, spi_ppc4xx_of_match);static struct platform_driver spi_ppc4xx_of_driver = { .probe = spi_ppc4xx_of_probe, - .remove =__exit_p (spi_ppc4xx_of_remove), + .remove = spi_ppc4xx_of_remove, .driver = { .name =DRIVER_NAME , .owner =THIS_MODULE ,
drivers/spi/spi-txx9.c +2 -2
@@ -430,7 +430,7 @@ exit:return ret; } -static int __exit txx9spi_remove(struct platform_device *dev) +static int txx9spi_remove (struct platform_device *dev) {struct spi_master *master =spi_master_get (platform_get_drvdata (dev));struct txx9spi *c =spi_master_get_devdata (master);
@@ -448,7 +448,7 @@ static int __exit txx9spi_remove(struct platform_device *dev)MODULE_ALIAS ("platform:spi_txx9" );static struct platform_driver txx9spi_driver = { - .remove =__exit_p (txx9spi_remove), + .remove = txx9spi_remove, .driver = { .name ="spi_txx9" , .owner =THIS_MODULE ,
Signature · 8 lines
1.7.10.4 ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb