提交 2deff8d6 编写于 作者: G Grant Likely

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: NArnd Bergmann <arnd@arndb.de>
[Arnd set a patch cleaning up one, and then I found more]
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 75bf3361
...@@ -1088,7 +1088,7 @@ static struct platform_driver atmel_spi_driver = { ...@@ -1088,7 +1088,7 @@ static struct platform_driver atmel_spi_driver = {
.suspend = atmel_spi_suspend, .suspend = atmel_spi_suspend,
.resume = atmel_spi_resume, .resume = atmel_spi_resume,
.probe = atmel_spi_probe, .probe = atmel_spi_probe,
.remove = __exit_p(atmel_spi_remove), .remove = atmel_spi_remove,
}; };
module_platform_driver(atmel_spi_driver); module_platform_driver(atmel_spi_driver);
......
...@@ -717,7 +717,7 @@ static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw) ...@@ -717,7 +717,7 @@ static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw)
} }
} }
static void __init au1550_spi_setup_psc_as_spi(struct au1550_spi *hw) static void au1550_spi_setup_psc_as_spi(struct au1550_spi *hw)
{ {
u32 stat, cfg; u32 stat, cfg;
...@@ -766,7 +766,7 @@ static void __init au1550_spi_setup_psc_as_spi(struct au1550_spi *hw) ...@@ -766,7 +766,7 @@ static void __init au1550_spi_setup_psc_as_spi(struct au1550_spi *hw)
} }
static int __init au1550_spi_probe(struct platform_device *pdev) static int au1550_spi_probe(struct platform_device *pdev)
{ {
struct au1550_spi *hw; struct au1550_spi *hw;
struct spi_master *master; struct spi_master *master;
...@@ -968,7 +968,7 @@ static int __init au1550_spi_probe(struct platform_device *pdev) ...@@ -968,7 +968,7 @@ static int __init au1550_spi_probe(struct platform_device *pdev)
return err; 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); struct au1550_spi *hw = platform_get_drvdata(pdev);
...@@ -997,7 +997,7 @@ static int __exit au1550_spi_remove(struct platform_device *pdev) ...@@ -997,7 +997,7 @@ static int __exit au1550_spi_remove(struct platform_device *pdev)
MODULE_ALIAS("platform:au1550-spi"); MODULE_ALIAS("platform:au1550-spi");
static struct platform_driver au1550_spi_drv = { static struct platform_driver au1550_spi_drv = {
.remove = __exit_p(au1550_spi_remove), .remove = au1550_spi_remove,
.driver = { .driver = {
.name = "au1550-spi", .name = "au1550-spi",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -1273,7 +1273,7 @@ static int bfin_spi_destroy_queue(struct bfin_spi_master_data *drv_data) ...@@ -1273,7 +1273,7 @@ static int bfin_spi_destroy_queue(struct bfin_spi_master_data *drv_data)
return 0; return 0;
} }
static int __init bfin_spi_probe(struct platform_device *pdev) static int bfin_spi_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct bfin5xx_spi_master *platform_info; struct bfin5xx_spi_master *platform_info;
......
...@@ -481,7 +481,7 @@ static int omap1_spi100k_transfer(struct spi_device *spi, struct spi_message *m) ...@@ -481,7 +481,7 @@ static int omap1_spi100k_transfer(struct spi_device *spi, struct spi_message *m)
return 0; return 0;
} }
static int __init omap1_spi100k_reset(struct omap1_spi100k *spi100k) static int omap1_spi100k_reset(struct omap1_spi100k *spi100k)
{ {
return 0; return 0;
} }
...@@ -560,7 +560,7 @@ static int omap1_spi100k_probe(struct platform_device *pdev) ...@@ -560,7 +560,7 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
return status; 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 spi_master *master;
struct omap1_spi100k *spi100k; struct omap1_spi100k *spi100k;
...@@ -604,7 +604,7 @@ static struct platform_driver omap1_spi100k_driver = { ...@@ -604,7 +604,7 @@ static struct platform_driver omap1_spi100k_driver = {
.name = "omap1_spi100k", .name = "omap1_spi100k",
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.remove = __exit_p(omap1_spi100k_remove), .remove = omap1_spi100k_remove,
}; };
......
...@@ -476,7 +476,7 @@ static void uwire_off(struct uwire_spi *uwire) ...@@ -476,7 +476,7 @@ static void uwire_off(struct uwire_spi *uwire)
spi_master_put(uwire->bitbang.master); spi_master_put(uwire->bitbang.master);
} }
static int __init uwire_probe(struct platform_device *pdev) static int uwire_probe(struct platform_device *pdev)
{ {
struct spi_master *master; struct spi_master *master;
struct uwire_spi *uwire; struct uwire_spi *uwire;
...@@ -536,7 +536,7 @@ static int __init uwire_probe(struct platform_device *pdev) ...@@ -536,7 +536,7 @@ static int __init uwire_probe(struct platform_device *pdev)
return status; 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); struct uwire_spi *uwire = dev_get_drvdata(&pdev->dev);
int status; int status;
...@@ -557,7 +557,7 @@ static struct platform_driver uwire_driver = { ...@@ -557,7 +557,7 @@ static struct platform_driver uwire_driver = {
.name = "omap_uwire", .name = "omap_uwire",
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.remove = __exit_p(uwire_remove), .remove = uwire_remove,
// suspend ... unuse ck // suspend ... unuse ck
// resume ... use ck // resume ... use ck
}; };
......
...@@ -366,7 +366,7 @@ static int orion_spi_transfer_one_message(struct spi_master *master, ...@@ -366,7 +366,7 @@ static int orion_spi_transfer_one_message(struct spi_master *master,
return 0; return 0;
} }
static int __init orion_spi_reset(struct orion_spi *orion_spi) static int orion_spi_reset(struct orion_spi *orion_spi)
{ {
/* Verify that the CS is deasserted */ /* Verify that the CS is deasserted */
orion_spi_set_cs(orion_spi, 0); orion_spi_set_cs(orion_spi, 0);
...@@ -396,7 +396,7 @@ static int orion_spi_setup(struct spi_device *spi) ...@@ -396,7 +396,7 @@ static int orion_spi_setup(struct spi_device *spi)
return 0; return 0;
} }
static int __init orion_spi_probe(struct platform_device *pdev) static int orion_spi_probe(struct platform_device *pdev)
{ {
struct spi_master *master; struct spi_master *master;
struct orion_spi *spi; struct orion_spi *spi;
...@@ -479,7 +479,7 @@ static int __init orion_spi_probe(struct platform_device *pdev) ...@@ -479,7 +479,7 @@ static int __init orion_spi_probe(struct platform_device *pdev)
} }
static int __exit orion_spi_remove(struct platform_device *pdev) static int orion_spi_remove(struct platform_device *pdev)
{ {
struct spi_master *master; struct spi_master *master;
struct resource *r; struct resource *r;
...@@ -513,7 +513,7 @@ static struct platform_driver orion_spi_driver = { ...@@ -513,7 +513,7 @@ static struct platform_driver orion_spi_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = of_match_ptr(orion_spi_of_match_table), .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) static int __init orion_spi_init(void)
......
...@@ -389,7 +389,7 @@ static void free_gpios(struct ppc4xx_spi *hw) ...@@ -389,7 +389,7 @@ static void free_gpios(struct ppc4xx_spi *hw)
/* /*
* platform_device layer stuff... * platform_device layer stuff...
*/ */
static int __init spi_ppc4xx_of_probe(struct platform_device *op) static int spi_ppc4xx_of_probe(struct platform_device *op)
{ {
struct ppc4xx_spi *hw; struct ppc4xx_spi *hw;
struct spi_master *master; struct spi_master *master;
...@@ -560,7 +560,7 @@ static int __init spi_ppc4xx_of_probe(struct platform_device *op) ...@@ -560,7 +560,7 @@ static int __init spi_ppc4xx_of_probe(struct platform_device *op)
return ret; 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 spi_master *master = dev_get_drvdata(&op->dev);
struct ppc4xx_spi *hw = spi_master_get_devdata(master); struct ppc4xx_spi *hw = spi_master_get_devdata(master);
...@@ -583,7 +583,7 @@ MODULE_DEVICE_TABLE(of, spi_ppc4xx_of_match); ...@@ -583,7 +583,7 @@ MODULE_DEVICE_TABLE(of, spi_ppc4xx_of_match);
static struct platform_driver spi_ppc4xx_of_driver = { static struct platform_driver spi_ppc4xx_of_driver = {
.probe = spi_ppc4xx_of_probe, .probe = spi_ppc4xx_of_probe,
.remove = __exit_p(spi_ppc4xx_of_remove), .remove = spi_ppc4xx_of_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -1191,7 +1191,7 @@ static inline struct s3c64xx_spi_port_config *s3c64xx_spi_get_port_config( ...@@ -1191,7 +1191,7 @@ static inline struct s3c64xx_spi_port_config *s3c64xx_spi_get_port_config(
platform_get_device_id(pdev)->driver_data; platform_get_device_id(pdev)->driver_data;
} }
static int __init s3c64xx_spi_probe(struct platform_device *pdev) static int s3c64xx_spi_probe(struct platform_device *pdev)
{ {
struct resource *mem_res; struct resource *mem_res;
struct s3c64xx_spi_driver_data *sdd; struct s3c64xx_spi_driver_data *sdd;
......
...@@ -335,7 +335,7 @@ static int txx9spi_transfer(struct spi_device *spi, struct spi_message *m) ...@@ -335,7 +335,7 @@ static int txx9spi_transfer(struct spi_device *spi, struct spi_message *m)
return 0; return 0;
} }
static int __init txx9spi_probe(struct platform_device *dev) static int txx9spi_probe(struct platform_device *dev)
{ {
struct spi_master *master; struct spi_master *master;
struct txx9spi *c; struct txx9spi *c;
...@@ -430,7 +430,7 @@ static int __init txx9spi_probe(struct platform_device *dev) ...@@ -430,7 +430,7 @@ static int __init txx9spi_probe(struct platform_device *dev)
return ret; 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 spi_master *master = spi_master_get(platform_get_drvdata(dev));
struct txx9spi *c = spi_master_get_devdata(master); struct txx9spi *c = spi_master_get_devdata(master);
...@@ -448,7 +448,7 @@ static int __exit txx9spi_remove(struct platform_device *dev) ...@@ -448,7 +448,7 @@ static int __exit txx9spi_remove(struct platform_device *dev)
MODULE_ALIAS("platform:spi_txx9"); MODULE_ALIAS("platform:spi_txx9");
static struct platform_driver txx9spi_driver = { static struct platform_driver txx9spi_driver = {
.remove = __exit_p(txx9spi_remove), .remove = txx9spi_remove,
.driver = { .driver = {
.name = "spi_txx9", .name = "spi_txx9",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册