spi: Remove HOTPLUG section attributes

CONFIG_HOTPLUG is going away as an option.  As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.

Bill Pemberton has done most of the legwork on this series. I've used
his script to purge the attributes from the drivers/gpio tree.

Reported-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Grant Likely
2012-12-07 16:57:14 +00:00
parent 7730cba2a5
commit fd4a319bc9
47 changed files with 153 additions and 158 deletions

View File

@ -287,7 +287,7 @@ static void spi_gpio_cleanup(struct spi_device *spi)
spi_bitbang_cleanup(spi);
}
static int __devinit spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
static int spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
{
int value;
@ -301,9 +301,8 @@ static int __devinit spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
return value;
}
static int __devinit
spi_gpio_request(struct spi_gpio_platform_data *pdata, const char *label,
u16 *res_flags)
static int spi_gpio_request(struct spi_gpio_platform_data *pdata,
const char *label, u16 *res_flags)
{
int value;
@ -392,7 +391,7 @@ static inline int spi_gpio_probe_dt(struct platform_device *pdev)
}
#endif
static int __devinit spi_gpio_probe(struct platform_device *pdev)
static int spi_gpio_probe(struct platform_device *pdev)
{
int status;
struct spi_master *master;
@ -485,7 +484,7 @@ gpio_free:
return status;
}
static int __devexit spi_gpio_remove(struct platform_device *pdev)
static int spi_gpio_remove(struct platform_device *pdev)
{
struct spi_gpio *spi_gpio;
struct spi_gpio_platform_data *pdata;
@ -518,7 +517,7 @@ static struct platform_driver spi_gpio_driver = {
.of_match_table = of_match_ptr(spi_gpio_dt_ids),
},
.probe = spi_gpio_probe,
.remove = __devexit_p(spi_gpio_remove),
.remove = spi_gpio_remove,
};
module_platform_driver(spi_gpio_driver);