diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 17:04:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:09 -0500 |
commit | 28eb0e46612a08a235c8b103eb2bd6a1aea83210 (patch) | |
tree | cce2e4c0ac378e177d2ab9cc61e17aca5e5e2483 /arch/mips/mti-sead3 | |
parent | cad5cef62a5a0c525d39118d2e94b6e2034d5e05 (diff) |
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>
Diffstat (limited to 'arch/mips/mti-sead3')
-rw-r--r-- | arch/mips/mti-sead3/sead3-i2c-drv.c | 6 | ||||
-rw-r--r-- | arch/mips/mti-sead3/sead3-pic32-i2c-drv.c | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/arch/mips/mti-sead3/sead3-i2c-drv.c b/arch/mips/mti-sead3/sead3-i2c-drv.c index 0375ee66bca3..7aa2225e75b9 100644 --- a/arch/mips/mti-sead3/sead3-i2c-drv.c +++ b/arch/mips/mti-sead3/sead3-i2c-drv.c | |||
@@ -297,7 +297,7 @@ static void sead3_i2c_platform_setup(struct pic32_i2c_platform_data *priv) | |||
297 | priv->base + PIC32_I2CxSTATCLR); | 297 | priv->base + PIC32_I2CxSTATCLR); |
298 | } | 298 | } |
299 | 299 | ||
300 | static int __devinit sead3_i2c_platform_probe(struct platform_device *pdev) | 300 | static int sead3_i2c_platform_probe(struct platform_device *pdev) |
301 | { | 301 | { |
302 | struct pic32_i2c_platform_data *priv; | 302 | struct pic32_i2c_platform_data *priv; |
303 | struct resource *r; | 303 | struct resource *r; |
@@ -345,7 +345,7 @@ out: | |||
345 | return ret; | 345 | return ret; |
346 | } | 346 | } |
347 | 347 | ||
348 | static int __devexit sead3_i2c_platform_remove(struct platform_device *pdev) | 348 | static int sead3_i2c_platform_remove(struct platform_device *pdev) |
349 | { | 349 | { |
350 | struct pic32_i2c_platform_data *priv = platform_get_drvdata(pdev); | 350 | struct pic32_i2c_platform_data *priv = platform_get_drvdata(pdev); |
351 | 351 | ||
@@ -383,7 +383,7 @@ static struct platform_driver sead3_i2c_platform_driver = { | |||
383 | .owner = THIS_MODULE, | 383 | .owner = THIS_MODULE, |
384 | }, | 384 | }, |
385 | .probe = sead3_i2c_platform_probe, | 385 | .probe = sead3_i2c_platform_probe, |
386 | .remove = __devexit_p(sead3_i2c_platform_remove), | 386 | .remove = sead3_i2c_platform_remove, |
387 | .suspend = sead3_i2c_platform_suspend, | 387 | .suspend = sead3_i2c_platform_suspend, |
388 | .resume = sead3_i2c_platform_resume, | 388 | .resume = sead3_i2c_platform_resume, |
389 | }; | 389 | }; |
diff --git a/arch/mips/mti-sead3/sead3-pic32-i2c-drv.c b/arch/mips/mti-sead3/sead3-pic32-i2c-drv.c index 46509b0a620d..514675ed0cde 100644 --- a/arch/mips/mti-sead3/sead3-pic32-i2c-drv.c +++ b/arch/mips/mti-sead3/sead3-pic32-i2c-drv.c | |||
@@ -304,8 +304,7 @@ static void i2c_platform_disable(struct i2c_platform_data *priv) | |||
304 | pr_debug("i2c_platform_disable\n"); | 304 | pr_debug("i2c_platform_disable\n"); |
305 | } | 305 | } |
306 | 306 | ||
307 | static int __devinit | 307 | static int i2c_platform_probe(struct platform_device *pdev) |
308 | i2c_platform_probe(struct platform_device *pdev) | ||
309 | { | 308 | { |
310 | struct i2c_platform_data *priv; | 309 | struct i2c_platform_data *priv; |
311 | struct resource *r; | 310 | struct resource *r; |
@@ -362,8 +361,7 @@ out: | |||
362 | return ret; | 361 | return ret; |
363 | } | 362 | } |
364 | 363 | ||
365 | static int __devexit | 364 | static int i2c_platform_remove(struct platform_device *pdev) |
366 | i2c_platform_remove(struct platform_device *pdev) | ||
367 | { | 365 | { |
368 | struct i2c_platform_data *priv = platform_get_drvdata(pdev); | 366 | struct i2c_platform_data *priv = platform_get_drvdata(pdev); |
369 | 367 | ||
@@ -408,7 +406,7 @@ static struct platform_driver i2c_platform_driver = { | |||
408 | .owner = THIS_MODULE, | 406 | .owner = THIS_MODULE, |
409 | }, | 407 | }, |
410 | .probe = i2c_platform_probe, | 408 | .probe = i2c_platform_probe, |
411 | .remove = __devexit_p(i2c_platform_remove), | 409 | .remove = i2c_platform_remove, |
412 | .suspend = i2c_platform_suspend, | 410 | .suspend = i2c_platform_suspend, |
413 | .resume = i2c_platform_resume, | 411 | .resume = i2c_platform_resume, |
414 | }; | 412 | }; |