MIPS: 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -297,7 +297,7 @@ static void sead3_i2c_platform_setup(struct pic32_i2c_platform_data *priv)
|
||||
priv->base + PIC32_I2CxSTATCLR);
|
||||
}
|
||||
|
||||
static int __devinit sead3_i2c_platform_probe(struct platform_device *pdev)
|
||||
static int sead3_i2c_platform_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct pic32_i2c_platform_data *priv;
|
||||
struct resource *r;
|
||||
@@ -345,7 +345,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit sead3_i2c_platform_remove(struct platform_device *pdev)
|
||||
static int sead3_i2c_platform_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct pic32_i2c_platform_data *priv = platform_get_drvdata(pdev);
|
||||
|
||||
@@ -383,7 +383,7 @@ static struct platform_driver sead3_i2c_platform_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = sead3_i2c_platform_probe,
|
||||
.remove = __devexit_p(sead3_i2c_platform_remove),
|
||||
.remove = sead3_i2c_platform_remove,
|
||||
.suspend = sead3_i2c_platform_suspend,
|
||||
.resume = sead3_i2c_platform_resume,
|
||||
};
|
||||
|
@@ -304,8 +304,7 @@ static void i2c_platform_disable(struct i2c_platform_data *priv)
|
||||
pr_debug("i2c_platform_disable\n");
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
i2c_platform_probe(struct platform_device *pdev)
|
||||
static int i2c_platform_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct i2c_platform_data *priv;
|
||||
struct resource *r;
|
||||
@@ -362,8 +361,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit
|
||||
i2c_platform_remove(struct platform_device *pdev)
|
||||
static int i2c_platform_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct i2c_platform_data *priv = platform_get_drvdata(pdev);
|
||||
|
||||
@@ -408,7 +406,7 @@ static struct platform_driver i2c_platform_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = i2c_platform_probe,
|
||||
.remove = __devexit_p(i2c_platform_remove),
|
||||
.remove = i2c_platform_remove,
|
||||
.suspend = i2c_platform_suspend,
|
||||
.resume = i2c_platform_resume,
|
||||
};
|
||||
|
Reference in New Issue
Block a user