ARM: drivers: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitdata,
and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman
2012-12-21 14:02:24 -08:00
parent 3d68dfe324
commit 351a102dbf
43 changed files with 131 additions and 134 deletions

View File

@@ -198,7 +198,7 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = {
static struct platform_device *corgipm_device;
static int __devinit corgipm_init(void)
static int corgipm_init(void)
{
int ret;

View File

@@ -829,7 +829,7 @@ static const struct platform_suspend_ops sharpsl_pm_ops = {
};
#endif
static int __devinit sharpsl_pm_probe(struct platform_device *pdev)
static int sharpsl_pm_probe(struct platform_device *pdev)
{
int ret, irq;
@@ -941,7 +941,7 @@ static struct platform_driver sharpsl_pm_driver = {
},
};
static int __devinit sharpsl_pm_init(void)
static int sharpsl_pm_init(void)
{
return platform_driver_register(&sharpsl_pm_driver);
}

View File

@@ -232,7 +232,7 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = {
static struct platform_device *spitzpm_device;
static int __devinit spitzpm_init(void)
static int spitzpm_init(void)
{
int ret;

View File

@@ -102,7 +102,7 @@ err_reset:
return rc;
}
static int __devexit tosa_bt_remove(struct platform_device *dev)
static int tosa_bt_remove(struct platform_device *dev)
{
struct tosa_bt_data *data = dev->dev.platform_data;
struct rfkill *rfk = platform_get_drvdata(dev);
@@ -125,7 +125,7 @@ static int __devexit tosa_bt_remove(struct platform_device *dev)
static struct platform_driver tosa_bt_driver = {
.probe = tosa_bt_probe,
.remove = __devexit_p(tosa_bt_remove),
.remove = tosa_bt_remove,
.driver = {
.name = "tosa-bt",