aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 18:14:44 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:16 -0500
commit0fe763c570ad2701c830b9e4e53c65ad89c11c32 (patch)
tree88a648c1cbcda318507d339bf93f1b24af4ff4bf /drivers/gpio
parent8d85fce77edfc22f1d6dbf78e3af723b4b556f3d (diff)
Drivers: misc: 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, __devinitconst, 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 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-da9055.c8
-rw-r--r--drivers/gpio/gpio-ts5500.c6
-rw-r--r--drivers/gpio/gpio-viperboard.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpio/gpio-da9055.c b/drivers/gpio/gpio-da9055.c
index 55d83c7d9c7f..fd6dfe382f13 100644
--- a/drivers/gpio/gpio-da9055.c
+++ b/drivers/gpio/gpio-da9055.c
@@ -126,7 +126,7 @@ static int da9055_gpio_to_irq(struct gpio_chip *gc, u32 offset)
126 DA9055_IRQ_GPI0 + offset); 126 DA9055_IRQ_GPI0 + offset);
127} 127}
128 128
129static struct gpio_chip reference_gp __devinitdata = { 129static struct gpio_chip reference_gp = {
130 .label = "da9055-gpio", 130 .label = "da9055-gpio",
131 .owner = THIS_MODULE, 131 .owner = THIS_MODULE,
132 .get = da9055_gpio_get, 132 .get = da9055_gpio_get,
@@ -139,7 +139,7 @@ static struct gpio_chip reference_gp __devinitdata = {
139 .base = -1, 139 .base = -1,
140}; 140};
141 141
142static int __devinit da9055_gpio_probe(struct platform_device *pdev) 142static int da9055_gpio_probe(struct platform_device *pdev)
143{ 143{
144 struct da9055_gpio *gpio; 144 struct da9055_gpio *gpio;
145 struct da9055_pdata *pdata; 145 struct da9055_pdata *pdata;
@@ -170,7 +170,7 @@ err_mem:
170 return ret; 170 return ret;
171} 171}
172 172
173static int __devexit da9055_gpio_remove(struct platform_device *pdev) 173static int da9055_gpio_remove(struct platform_device *pdev)
174{ 174{
175 struct da9055_gpio *gpio = platform_get_drvdata(pdev); 175 struct da9055_gpio *gpio = platform_get_drvdata(pdev);
176 176
@@ -179,7 +179,7 @@ static int __devexit da9055_gpio_remove(struct platform_device *pdev)
179 179
180static struct platform_driver da9055_gpio_driver = { 180static struct platform_driver da9055_gpio_driver = {
181 .probe = da9055_gpio_probe, 181 .probe = da9055_gpio_probe,
182 .remove = __devexit_p(da9055_gpio_remove), 182 .remove = da9055_gpio_remove,
183 .driver = { 183 .driver = {
184 .name = "da9055-gpio", 184 .name = "da9055-gpio",
185 .owner = THIS_MODULE, 185 .owner = THIS_MODULE,
diff --git a/drivers/gpio/gpio-ts5500.c b/drivers/gpio/gpio-ts5500.c
index 0634ceea3c24..cc53cab8df2a 100644
--- a/drivers/gpio/gpio-ts5500.c
+++ b/drivers/gpio/gpio-ts5500.c
@@ -319,7 +319,7 @@ static void ts5500_disable_irq(struct ts5500_priv *priv)
319 spin_unlock_irqrestore(&priv->lock, flags); 319 spin_unlock_irqrestore(&priv->lock, flags);
320} 320}
321 321
322static int __devinit ts5500_dio_probe(struct platform_device *pdev) 322static int ts5500_dio_probe(struct platform_device *pdev)
323{ 323{
324 enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data; 324 enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data;
325 struct ts5500_dio_platform_data *pdata = pdev->dev.platform_data; 325 struct ts5500_dio_platform_data *pdata = pdev->dev.platform_data;
@@ -432,7 +432,7 @@ cleanup:
432 return ret; 432 return ret;
433} 433}
434 434
435static int __devexit ts5500_dio_remove(struct platform_device *pdev) 435static int ts5500_dio_remove(struct platform_device *pdev)
436{ 436{
437 struct ts5500_priv *priv = platform_get_drvdata(pdev); 437 struct ts5500_priv *priv = platform_get_drvdata(pdev);
438 438
@@ -455,7 +455,7 @@ static struct platform_driver ts5500_dio_driver = {
455 .owner = THIS_MODULE, 455 .owner = THIS_MODULE,
456 }, 456 },
457 .probe = ts5500_dio_probe, 457 .probe = ts5500_dio_probe,
458 .remove = __devexit_p(ts5500_dio_remove), 458 .remove = ts5500_dio_remove,
459 .id_table = ts5500_dio_ids, 459 .id_table = ts5500_dio_ids,
460}; 460};
461 461
diff --git a/drivers/gpio/gpio-viperboard.c b/drivers/gpio/gpio-viperboard.c
index 13772996cf24..59d72391de26 100644
--- a/drivers/gpio/gpio-viperboard.c
+++ b/drivers/gpio/gpio-viperboard.c
@@ -400,7 +400,7 @@ static int vprbrd_gpiob_direction_output(struct gpio_chip *chip,
400 400
401/* ----- end of gpio b chip ---------------------------------------------- */ 401/* ----- end of gpio b chip ---------------------------------------------- */
402 402
403static int __devinit vprbrd_gpio_probe(struct platform_device *pdev) 403static int vprbrd_gpio_probe(struct platform_device *pdev)
404{ 404{
405 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); 405 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent);
406 struct vprbrd_gpio *vb_gpio; 406 struct vprbrd_gpio *vb_gpio;
@@ -456,7 +456,7 @@ err_gpioa:
456 return ret; 456 return ret;
457} 457}
458 458
459static int __devexit vprbrd_gpio_remove(struct platform_device *pdev) 459static int vprbrd_gpio_remove(struct platform_device *pdev)
460{ 460{
461 struct vprbrd_gpio *vb_gpio = platform_get_drvdata(pdev); 461 struct vprbrd_gpio *vb_gpio = platform_get_drvdata(pdev);
462 int ret; 462 int ret;
@@ -472,7 +472,7 @@ static struct platform_driver vprbrd_gpio_driver = {
472 .driver.name = "viperboard-gpio", 472 .driver.name = "viperboard-gpio",
473 .driver.owner = THIS_MODULE, 473 .driver.owner = THIS_MODULE,
474 .probe = vprbrd_gpio_probe, 474 .probe = vprbrd_gpio_probe,
475 .remove = __devexit_p(vprbrd_gpio_remove), 475 .remove = vprbrd_gpio_remove,
476}; 476};
477 477
478static int __init vprbrd_gpio_init(void) 478static int __init vprbrd_gpio_init(void)