Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Drivers: iio: 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, 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: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+138 -139
+2 -2
drivers/iio/accel/hid-sensor-accel-3d.c
··· 278 278 } 279 279 280 280 /* Function to initialize the processing for usage id */ 281 - static int __devinit hid_accel_3d_probe(struct platform_device *pdev) 281 + static int hid_accel_3d_probe(struct platform_device *pdev) 282 282 { 283 283 int ret = 0; 284 284 static const char *name = "accel_3d"; ··· 375 375 } 376 376 377 377 /* Function to deinitialize the processing for usage id */ 378 - static int __devinit hid_accel_3d_remove(struct platform_device *pdev) 378 + static int hid_accel_3d_remove(struct platform_device *pdev) 379 379 { 380 380 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; 381 381 struct iio_dev *indio_dev = platform_get_drvdata(pdev);
+4 -4
drivers/iio/adc/ad7266.c
··· 367 367 }, 368 368 }; 369 369 370 - static void __devinit ad7266_init_channels(struct iio_dev *indio_dev) 370 + static void ad7266_init_channels(struct iio_dev *indio_dev) 371 371 { 372 372 struct ad7266_state *st = iio_priv(indio_dev); 373 373 bool is_differential, is_signed; ··· 391 391 "AD0", "AD1", "AD2", 392 392 }; 393 393 394 - static int __devinit ad7266_probe(struct spi_device *spi) 394 + static int ad7266_probe(struct spi_device *spi) 395 395 { 396 396 struct ad7266_platform_data *pdata = spi->dev.platform_data; 397 397 struct iio_dev *indio_dev; ··· 494 494 return ret; 495 495 } 496 496 497 - static int __devexit ad7266_remove(struct spi_device *spi) 497 + static int ad7266_remove(struct spi_device *spi) 498 498 { 499 499 struct iio_dev *indio_dev = spi_get_drvdata(spi); 500 500 struct ad7266_state *st = iio_priv(indio_dev); ··· 525 525 .owner = THIS_MODULE, 526 526 }, 527 527 .probe = ad7266_probe, 528 - .remove = __devexit_p(ad7266_remove), 528 + .remove = ad7266_remove, 529 529 .id_table = ad7266_id, 530 530 }; 531 531 module_spi_driver(ad7266_driver);
+3 -3
drivers/iio/adc/ad7298.c
··· 292 292 .driver_module = THIS_MODULE, 293 293 }; 294 294 295 - static int __devinit ad7298_probe(struct spi_device *spi) 295 + static int ad7298_probe(struct spi_device *spi) 296 296 { 297 297 struct ad7298_platform_data *pdata = spi->dev.platform_data; 298 298 struct ad7298_state *st; ··· 370 370 return ret; 371 371 } 372 372 373 - static int __devexit ad7298_remove(struct spi_device *spi) 373 + static int ad7298_remove(struct spi_device *spi) 374 374 { 375 375 struct iio_dev *indio_dev = spi_get_drvdata(spi); 376 376 struct ad7298_state *st = iio_priv(indio_dev); ··· 398 398 .owner = THIS_MODULE, 399 399 }, 400 400 .probe = ad7298_probe, 401 - .remove = __devexit_p(ad7298_remove), 401 + .remove = ad7298_remove, 402 402 .id_table = ad7298_id, 403 403 }; 404 404 module_spi_driver(ad7298_driver);
+3 -3
drivers/iio/adc/ad7476.c
··· 207 207 .read_raw = &ad7476_read_raw, 208 208 }; 209 209 210 - static int __devinit ad7476_probe(struct spi_device *spi) 210 + static int ad7476_probe(struct spi_device *spi) 211 211 { 212 212 struct ad7476_state *st; 213 213 struct iio_dev *indio_dev; ··· 277 277 return ret; 278 278 } 279 279 280 - static int __devexit ad7476_remove(struct spi_device *spi) 280 + static int ad7476_remove(struct spi_device *spi) 281 281 { 282 282 struct iio_dev *indio_dev = spi_get_drvdata(spi); 283 283 struct ad7476_state *st = iio_priv(indio_dev); ··· 322 322 .owner = THIS_MODULE, 323 323 }, 324 324 .probe = ad7476_probe, 325 - .remove = __devexit_p(ad7476_remove), 325 + .remove = ad7476_remove, 326 326 .id_table = ad7476_id, 327 327 }; 328 328 module_spi_driver(ad7476_driver);
+5 -5
drivers/iio/adc/ad7791.c
··· 325 325 .driver_module = THIS_MODULE, 326 326 }; 327 327 328 - static int __devinit ad7791_setup(struct ad7791_state *st, 329 - struct ad7791_platform_data *pdata) 328 + static int ad7791_setup(struct ad7791_state *st, 329 + struct ad7791_platform_data *pdata) 330 330 { 331 331 /* Set to poweron-reset default values */ 332 332 st->mode = AD7791_MODE_BUFFER; ··· 349 349 st->mode); 350 350 } 351 351 352 - static int __devinit ad7791_probe(struct spi_device *spi) 352 + static int ad7791_probe(struct spi_device *spi) 353 353 { 354 354 struct ad7791_platform_data *pdata = spi->dev.platform_data; 355 355 struct iio_dev *indio_dev; ··· 418 418 return ret; 419 419 } 420 420 421 - static int __devexit ad7791_remove(struct spi_device *spi) 421 + static int ad7791_remove(struct spi_device *spi) 422 422 { 423 423 struct iio_dev *indio_dev = spi_get_drvdata(spi); 424 424 struct ad7791_state *st = iio_priv(indio_dev); ··· 450 450 .owner = THIS_MODULE, 451 451 }, 452 452 .probe = ad7791_probe, 453 - .remove = __devexit_p(ad7791_remove), 453 + .remove = ad7791_remove, 454 454 .id_table = ad7791_spi_ids, 455 455 }; 456 456 module_spi_driver(ad7791_driver);
+3 -3
drivers/iio/adc/ad7887.c
··· 233 233 .driver_module = THIS_MODULE, 234 234 }; 235 235 236 - static int __devinit ad7887_probe(struct spi_device *spi) 236 + static int ad7887_probe(struct spi_device *spi) 237 237 { 238 238 struct ad7887_platform_data *pdata = spi->dev.platform_data; 239 239 struct ad7887_state *st; ··· 340 340 return ret; 341 341 } 342 342 343 - static int __devexit ad7887_remove(struct spi_device *spi) 343 + static int ad7887_remove(struct spi_device *spi) 344 344 { 345 345 struct iio_dev *indio_dev = spi_get_drvdata(spi); 346 346 struct ad7887_state *st = iio_priv(indio_dev); ··· 368 368 .owner = THIS_MODULE, 369 369 }, 370 370 .probe = ad7887_probe, 371 - .remove = __devexit_p(ad7887_remove), 371 + .remove = ad7887_remove, 372 372 .id_table = ad7887_id, 373 373 }; 374 374 module_spi_driver(ad7887_driver);
+3 -3
drivers/iio/adc/at91_adc.c
··· 514 514 .read_raw = &at91_adc_read_raw, 515 515 }; 516 516 517 - static int __devinit at91_adc_probe(struct platform_device *pdev) 517 + static int at91_adc_probe(struct platform_device *pdev) 518 518 { 519 519 unsigned int prsc, mstrclk, ticks, adc_clk; 520 520 int ret; ··· 678 678 return ret; 679 679 } 680 680 681 - static int __devexit at91_adc_remove(struct platform_device *pdev) 681 + static int at91_adc_remove(struct platform_device *pdev) 682 682 { 683 683 struct iio_dev *idev = platform_get_drvdata(pdev); 684 684 struct at91_adc_state *st = iio_priv(idev); ··· 702 702 703 703 static struct platform_driver at91_adc_driver = { 704 704 .probe = at91_adc_probe, 705 - .remove = __devexit_p(at91_adc_remove), 705 + .remove = at91_adc_remove, 706 706 .driver = { 707 707 .name = "at91_adc", 708 708 .of_match_table = of_match_ptr(at91_adc_dt_ids),
+3 -3
drivers/iio/adc/lp8788_adc.c
··· 193 193 iio_map_array_unregister(indio_dev, adc->map); 194 194 } 195 195 196 - static int __devinit lp8788_adc_probe(struct platform_device *pdev) 196 + static int lp8788_adc_probe(struct platform_device *pdev) 197 197 { 198 198 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); 199 199 struct iio_dev *indio_dev; ··· 236 236 return ret; 237 237 } 238 238 239 - static int __devexit lp8788_adc_remove(struct platform_device *pdev) 239 + static int lp8788_adc_remove(struct platform_device *pdev) 240 240 { 241 241 struct iio_dev *indio_dev = platform_get_drvdata(pdev); 242 242 struct lp8788_adc *adc = iio_priv(indio_dev); ··· 250 250 251 251 static struct platform_driver lp8788_adc_driver = { 252 252 .probe = lp8788_adc_probe, 253 - .remove = __devexit_p(lp8788_adc_remove), 253 + .remove = lp8788_adc_remove, 254 254 .driver = { 255 255 .name = LP8788_DEV_ADC, 256 256 .owner = THIS_MODULE,
+5 -5
drivers/iio/adc/max1363.c
··· 1402 1402 return max1363_set_scan_mode(st); 1403 1403 } 1404 1404 1405 - static int __devinit max1363_alloc_scan_masks(struct iio_dev *indio_dev) 1405 + static int max1363_alloc_scan_masks(struct iio_dev *indio_dev) 1406 1406 { 1407 1407 struct max1363_state *st = iio_priv(indio_dev); 1408 1408 unsigned long *masks; ··· 1525 1525 iio_kfifo_free(indio_dev->buffer); 1526 1526 } 1527 1527 1528 - static int __devinit max1363_probe(struct i2c_client *client, 1529 - const struct i2c_device_id *id) 1528 + static int max1363_probe(struct i2c_client *client, 1529 + const struct i2c_device_id *id) 1530 1530 { 1531 1531 int ret; 1532 1532 struct max1363_state *st; ··· 1624 1624 return ret; 1625 1625 } 1626 1626 1627 - static int __devexit max1363_remove(struct i2c_client *client) 1627 + static int max1363_remove(struct i2c_client *client) 1628 1628 { 1629 1629 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1630 1630 struct max1363_state *st = iio_priv(indio_dev); ··· 1690 1690 .name = "max1363", 1691 1691 }, 1692 1692 .probe = max1363_probe, 1693 - .remove = __devexit_p(max1363_remove), 1693 + .remove = max1363_remove, 1694 1694 .id_table = max1363_id, 1695 1695 }; 1696 1696 module_i2c_driver(max1363_driver);
+3 -3
drivers/iio/adc/ti_am335x_adc.c
··· 136 136 .read_raw = &tiadc_read_raw, 137 137 }; 138 138 139 - static int __devinit tiadc_probe(struct platform_device *pdev) 139 + static int tiadc_probe(struct platform_device *pdev) 140 140 { 141 141 struct iio_dev *indio_dev; 142 142 struct tiadc_device *adc_dev; ··· 188 188 return err; 189 189 } 190 190 191 - static int __devexit tiadc_remove(struct platform_device *pdev) 191 + static int tiadc_remove(struct platform_device *pdev) 192 192 { 193 193 struct iio_dev *indio_dev = platform_get_drvdata(pdev); 194 194 ··· 250 250 .pm = TIADC_PM_OPS, 251 251 }, 252 252 .probe = tiadc_probe, 253 - .remove = __devexit_p(tiadc_remove), 253 + .remove = tiadc_remove, 254 254 }; 255 255 256 256 module_platform_driver(tiadc_driver);
+3 -3
drivers/iio/adc/viperboard_adc.c
··· 116 116 .driver_module = THIS_MODULE, 117 117 }; 118 118 119 - static int __devinit vprbrd_adc_probe(struct platform_device *pdev) 119 + static int vprbrd_adc_probe(struct platform_device *pdev) 120 120 { 121 121 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); 122 122 struct vprbrd_adc *adc; ··· 154 154 return ret; 155 155 } 156 156 157 - static int __devexit vprbrd_adc_remove(struct platform_device *pdev) 157 + static int vprbrd_adc_remove(struct platform_device *pdev) 158 158 { 159 159 struct iio_dev *indio_dev = platform_get_drvdata(pdev); 160 160 ··· 170 170 .owner = THIS_MODULE, 171 171 }, 172 172 .probe = vprbrd_adc_probe, 173 - .remove = __devexit_p(vprbrd_adc_remove), 173 + .remove = vprbrd_adc_remove, 174 174 }; 175 175 176 176 module_platform_driver(vprbrd_adc_driver);
+3 -3
drivers/iio/amplifiers/ad8366.c
··· 133 133 AD8366_CHAN(1), 134 134 }; 135 135 136 - static int __devinit ad8366_probe(struct spi_device *spi) 136 + static int ad8366_probe(struct spi_device *spi) 137 137 { 138 138 struct iio_dev *indio_dev; 139 139 struct ad8366_state *st; ··· 182 182 return ret; 183 183 } 184 184 185 - static int __devexit ad8366_remove(struct spi_device *spi) 185 + static int ad8366_remove(struct spi_device *spi) 186 186 { 187 187 struct iio_dev *indio_dev = spi_get_drvdata(spi); 188 188 struct ad8366_state *st = iio_priv(indio_dev); ··· 211 211 .owner = THIS_MODULE, 212 212 }, 213 213 .probe = ad8366_probe, 214 - .remove = __devexit_p(ad8366_remove), 214 + .remove = ad8366_remove, 215 215 .id_table = ad8366_id, 216 216 }; 217 217
+9 -9
drivers/iio/dac/ad5064.c
··· 424 424 return st->chip_info->shared_vref ? "vref" : ad5064_vref_names[vref]; 425 425 } 426 426 427 - static int __devinit ad5064_probe(struct device *dev, enum ad5064_type type, 428 - const char *name, ad5064_write_func write) 427 + static int ad5064_probe(struct device *dev, enum ad5064_type type, 428 + const char *name, ad5064_write_func write) 429 429 { 430 430 struct iio_dev *indio_dev; 431 431 struct ad5064_state *st; ··· 495 495 return ret; 496 496 } 497 497 498 - static int __devexit ad5064_remove(struct device *dev) 498 + static int ad5064_remove(struct device *dev) 499 499 { 500 500 struct iio_dev *indio_dev = dev_get_drvdata(dev); 501 501 struct ad5064_state *st = iio_priv(indio_dev); ··· 523 523 return spi_write(spi, &st->data.spi, sizeof(st->data.spi)); 524 524 } 525 525 526 - static int __devinit ad5064_spi_probe(struct spi_device *spi) 526 + static int ad5064_spi_probe(struct spi_device *spi) 527 527 { 528 528 const struct spi_device_id *id = spi_get_device_id(spi); 529 529 ··· 531 531 ad5064_spi_write); 532 532 } 533 533 534 - static int __devexit ad5064_spi_remove(struct spi_device *spi) 534 + static int ad5064_spi_remove(struct spi_device *spi) 535 535 { 536 536 return ad5064_remove(&spi->dev); 537 537 } ··· 563 563 .owner = THIS_MODULE, 564 564 }, 565 565 .probe = ad5064_spi_probe, 566 - .remove = __devexit_p(ad5064_spi_remove), 566 + .remove = ad5064_spi_remove, 567 567 .id_table = ad5064_spi_ids, 568 568 }; 569 569 ··· 596 596 return i2c_master_send(i2c, st->data.i2c, 3); 597 597 } 598 598 599 - static int __devinit ad5064_i2c_probe(struct i2c_client *i2c, 599 + static int ad5064_i2c_probe(struct i2c_client *i2c, 600 600 const struct i2c_device_id *id) 601 601 { 602 602 return ad5064_probe(&i2c->dev, id->driver_data, id->name, 603 603 ad5064_i2c_write); 604 604 } 605 605 606 - static int __devexit ad5064_i2c_remove(struct i2c_client *i2c) 606 + static int ad5064_i2c_remove(struct i2c_client *i2c) 607 607 { 608 608 return ad5064_remove(&i2c->dev); 609 609 } ··· 625 625 .owner = THIS_MODULE, 626 626 }, 627 627 .probe = ad5064_i2c_probe, 628 - .remove = __devexit_p(ad5064_i2c_remove), 628 + .remove = ad5064_i2c_remove, 629 629 .id_table = ad5064_i2c_ids, 630 630 }; 631 631
+4 -4
drivers/iio/dac/ad5360.c
··· 433 433 "vref0", "vref1", "vref2" 434 434 }; 435 435 436 - static int __devinit ad5360_alloc_channels(struct iio_dev *indio_dev) 436 + static int ad5360_alloc_channels(struct iio_dev *indio_dev) 437 437 { 438 438 struct ad5360_state *st = iio_priv(indio_dev); 439 439 struct iio_chan_spec *channels; ··· 456 456 return 0; 457 457 } 458 458 459 - static int __devinit ad5360_probe(struct spi_device *spi) 459 + static int ad5360_probe(struct spi_device *spi) 460 460 { 461 461 enum ad5360_type type = spi_get_device_id(spi)->driver_data; 462 462 struct iio_dev *indio_dev; ··· 524 524 return ret; 525 525 } 526 526 527 - static int __devexit ad5360_remove(struct spi_device *spi) 527 + static int ad5360_remove(struct spi_device *spi) 528 528 { 529 529 struct iio_dev *indio_dev = spi_get_drvdata(spi); 530 530 struct ad5360_state *st = iio_priv(indio_dev); ··· 560 560 .owner = THIS_MODULE, 561 561 }, 562 562 .probe = ad5360_probe, 563 - .remove = __devexit_p(ad5360_remove), 563 + .remove = ad5360_remove, 564 564 .id_table = ad5360_ids, 565 565 }; 566 566 module_spi_driver(ad5360_driver);
+11 -11
drivers/iio/dac/ad5380.c
··· 338 338 }, 339 339 }; 340 340 341 - static int __devinit ad5380_alloc_channels(struct iio_dev *indio_dev) 341 + static int ad5380_alloc_channels(struct iio_dev *indio_dev) 342 342 { 343 343 struct ad5380_state *st = iio_priv(indio_dev); 344 344 struct iio_chan_spec *channels; ··· 361 361 return 0; 362 362 } 363 363 364 - static int __devinit ad5380_probe(struct device *dev, struct regmap *regmap, 365 - enum ad5380_type type, const char *name) 364 + static int ad5380_probe(struct device *dev, struct regmap *regmap, 365 + enum ad5380_type type, const char *name) 366 366 { 367 367 struct iio_dev *indio_dev; 368 368 struct ad5380_state *st; ··· 441 441 return ret; 442 442 } 443 443 444 - static int __devexit ad5380_remove(struct device *dev) 444 + static int ad5380_remove(struct device *dev) 445 445 { 446 446 struct iio_dev *indio_dev = dev_get_drvdata(dev); 447 447 struct ad5380_state *st = iio_priv(indio_dev); ··· 478 478 479 479 #if IS_ENABLED(CONFIG_SPI_MASTER) 480 480 481 - static int __devinit ad5380_spi_probe(struct spi_device *spi) 481 + static int ad5380_spi_probe(struct spi_device *spi) 482 482 { 483 483 const struct spi_device_id *id = spi_get_device_id(spi); 484 484 struct regmap *regmap; ··· 491 491 return ad5380_probe(&spi->dev, regmap, id->driver_data, id->name); 492 492 } 493 493 494 - static int __devexit ad5380_spi_remove(struct spi_device *spi) 494 + static int ad5380_spi_remove(struct spi_device *spi) 495 495 { 496 496 return ad5380_remove(&spi->dev); 497 497 } ··· 523 523 .owner = THIS_MODULE, 524 524 }, 525 525 .probe = ad5380_spi_probe, 526 - .remove = __devexit_p(ad5380_spi_remove), 526 + .remove = ad5380_spi_remove, 527 527 .id_table = ad5380_spi_ids, 528 528 }; 529 529 ··· 552 552 553 553 #if IS_ENABLED(CONFIG_I2C) 554 554 555 - static int __devinit ad5380_i2c_probe(struct i2c_client *i2c, 556 - const struct i2c_device_id *id) 555 + static int ad5380_i2c_probe(struct i2c_client *i2c, 556 + const struct i2c_device_id *id) 557 557 { 558 558 struct regmap *regmap; 559 559 ··· 565 565 return ad5380_probe(&i2c->dev, regmap, id->driver_data, id->name); 566 566 } 567 567 568 - static int __devexit ad5380_i2c_remove(struct i2c_client *i2c) 568 + static int ad5380_i2c_remove(struct i2c_client *i2c) 569 569 { 570 570 return ad5380_remove(&i2c->dev); 571 571 } ··· 597 597 .owner = THIS_MODULE, 598 598 }, 599 599 .probe = ad5380_i2c_probe, 600 - .remove = __devexit_p(ad5380_i2c_remove), 600 + .remove = ad5380_i2c_remove, 601 601 .id_table = ad5380_i2c_ids, 602 602 }; 603 603
+3 -3
drivers/iio/dac/ad5421.c
··· 449 449 .driver_module = THIS_MODULE, 450 450 }; 451 451 452 - static int __devinit ad5421_probe(struct spi_device *spi) 452 + static int ad5421_probe(struct spi_device *spi) 453 453 { 454 454 struct ad5421_platform_data *pdata = dev_get_platdata(&spi->dev); 455 455 struct iio_dev *indio_dev; ··· 516 516 return ret; 517 517 } 518 518 519 - static int __devexit ad5421_remove(struct spi_device *spi) 519 + static int ad5421_remove(struct spi_device *spi) 520 520 { 521 521 struct iio_dev *indio_dev = spi_get_drvdata(spi); 522 522 ··· 534 534 .owner = THIS_MODULE, 535 535 }, 536 536 .probe = ad5421_probe, 537 - .remove = __devexit_p(ad5421_remove), 537 + .remove = ad5421_remove, 538 538 }; 539 539 module_spi_driver(ad5421_driver); 540 540
+9 -9
drivers/iio/dac/ad5446.c
··· 212 212 .driver_module = THIS_MODULE, 213 213 }; 214 214 215 - static int __devinit ad5446_probe(struct device *dev, const char *name, 216 - const struct ad5446_chip_info *chip_info) 215 + static int ad5446_probe(struct device *dev, const char *name, 216 + const struct ad5446_chip_info *chip_info) 217 217 { 218 218 struct ad5446_state *st; 219 219 struct iio_dev *indio_dev; ··· 461 461 }; 462 462 MODULE_DEVICE_TABLE(spi, ad5446_spi_ids); 463 463 464 - static int __devinit ad5446_spi_probe(struct spi_device *spi) 464 + static int ad5446_spi_probe(struct spi_device *spi) 465 465 { 466 466 const struct spi_device_id *id = spi_get_device_id(spi); 467 467 ··· 469 469 &ad5446_spi_chip_info[id->driver_data]); 470 470 } 471 471 472 - static int __devexit ad5446_spi_remove(struct spi_device *spi) 472 + static int ad5446_spi_remove(struct spi_device *spi) 473 473 { 474 474 return ad5446_remove(&spi->dev); 475 475 } ··· 480 480 .owner = THIS_MODULE, 481 481 }, 482 482 .probe = ad5446_spi_probe, 483 - .remove = __devexit_p(ad5446_spi_remove), 483 + .remove = ad5446_spi_remove, 484 484 .id_table = ad5446_spi_ids, 485 485 }; 486 486 ··· 539 539 }, 540 540 }; 541 541 542 - static int __devinit ad5446_i2c_probe(struct i2c_client *i2c, 543 - const struct i2c_device_id *id) 542 + static int ad5446_i2c_probe(struct i2c_client *i2c, 543 + const struct i2c_device_id *id) 544 544 { 545 545 return ad5446_probe(&i2c->dev, id->name, 546 546 &ad5446_i2c_chip_info[id->driver_data]); 547 547 } 548 548 549 - static int __devexit ad5446_i2c_remove(struct i2c_client *i2c) 549 + static int ad5446_i2c_remove(struct i2c_client *i2c) 550 550 { 551 551 return ad5446_remove(&i2c->dev); 552 552 } ··· 568 568 .owner = THIS_MODULE, 569 569 }, 570 570 .probe = ad5446_i2c_probe, 571 - .remove = __devexit_p(ad5446_i2c_remove), 571 + .remove = ad5446_i2c_remove, 572 572 .id_table = ad5446_i2c_ids, 573 573 }; 574 574
+3 -3
drivers/iio/dac/ad5449.c
··· 266 266 return "VREFB"; 267 267 } 268 268 269 - static int __devinit ad5449_spi_probe(struct spi_device *spi) 269 + static int ad5449_spi_probe(struct spi_device *spi) 270 270 { 271 271 struct ad5449_platform_data *pdata = spi->dev.platform_data; 272 272 const struct spi_device_id *id = spi_get_device_id(spi); ··· 333 333 return ret; 334 334 } 335 335 336 - static int __devexit ad5449_spi_remove(struct spi_device *spi) 336 + static int ad5449_spi_remove(struct spi_device *spi) 337 337 { 338 338 struct iio_dev *indio_dev = spi_get_drvdata(spi); 339 339 struct ad5449 *st = iio_priv(indio_dev); ··· 366 366 .owner = THIS_MODULE, 367 367 }, 368 368 .probe = ad5449_spi_probe, 369 - .remove = __devexit_p(ad5449_spi_remove), 369 + .remove = ad5449_spi_remove, 370 370 .id_table = ad5449_spi_ids, 371 371 }; 372 372 module_spi_driver(ad5449_spi_driver);
+3 -3
drivers/iio/dac/ad5504.c
··· 277 277 AD5504_CHANNEL(3), 278 278 }; 279 279 280 - static int __devinit ad5504_probe(struct spi_device *spi) 280 + static int ad5504_probe(struct spi_device *spi) 281 281 { 282 282 struct ad5504_platform_data *pdata = spi->dev.platform_data; 283 283 struct iio_dev *indio_dev; ··· 352 352 return ret; 353 353 } 354 354 355 - static int __devexit ad5504_remove(struct spi_device *spi) 355 + static int ad5504_remove(struct spi_device *spi) 356 356 { 357 357 struct iio_dev *indio_dev = spi_get_drvdata(spi); 358 358 struct ad5504_state *st = iio_priv(indio_dev); ··· 383 383 .owner = THIS_MODULE, 384 384 }, 385 385 .probe = ad5504_probe, 386 - .remove = __devexit_p(ad5504_remove), 386 + .remove = ad5504_remove, 387 387 .id_table = ad5504_id, 388 388 }; 389 389 module_spi_driver(ad5504_driver);
+3 -3
drivers/iio/dac/ad5624r_spi.c
··· 220 220 }, 221 221 }; 222 222 223 - static int __devinit ad5624r_probe(struct spi_device *spi) 223 + static int ad5624r_probe(struct spi_device *spi) 224 224 { 225 225 struct ad5624r_state *st; 226 226 struct iio_dev *indio_dev; ··· 282 282 return ret; 283 283 } 284 284 285 - static int __devexit ad5624r_remove(struct spi_device *spi) 285 + static int ad5624r_remove(struct spi_device *spi) 286 286 { 287 287 struct iio_dev *indio_dev = spi_get_drvdata(spi); 288 288 struct ad5624r_state *st = iio_priv(indio_dev); ··· 314 314 .owner = THIS_MODULE, 315 315 }, 316 316 .probe = ad5624r_probe, 317 - .remove = __devexit_p(ad5624r_remove), 317 + .remove = ad5624r_remove, 318 318 .id_table = ad5624r_id, 319 319 }; 320 320 module_spi_driver(ad5624r_driver);
+3 -3
drivers/iio/dac/ad5686.c
··· 313 313 }; 314 314 315 315 316 - static int __devinit ad5686_probe(struct spi_device *spi) 316 + static int ad5686_probe(struct spi_device *spi) 317 317 { 318 318 struct ad5686_state *st; 319 319 struct iio_dev *indio_dev; ··· 379 379 return ret; 380 380 } 381 381 382 - static int __devexit ad5686_remove(struct spi_device *spi) 382 + static int ad5686_remove(struct spi_device *spi) 383 383 { 384 384 struct iio_dev *indio_dev = spi_get_drvdata(spi); 385 385 struct ad5686_state *st = iio_priv(indio_dev); ··· 408 408 .owner = THIS_MODULE, 409 409 }, 410 410 .probe = ad5686_probe, 411 - .remove = __devexit_p(ad5686_remove), 411 + .remove = ad5686_remove, 412 412 .id_table = ad5686_id, 413 413 }; 414 414 module_spi_driver(ad5686_driver);
+8 -8
drivers/iio/dac/ad5755.c
··· 447 447 } 448 448 } 449 449 450 - static int __devinit ad5755_setup_pdata(struct iio_dev *indio_dev, 451 - const struct ad5755_platform_data *pdata) 450 + static int ad5755_setup_pdata(struct iio_dev *indio_dev, 451 + const struct ad5755_platform_data *pdata) 452 452 { 453 453 struct ad5755_state *st = iio_priv(indio_dev); 454 454 unsigned int val; ··· 503 503 return 0; 504 504 } 505 505 506 - static bool __devinit ad5755_is_voltage_mode(enum ad5755_mode mode) 506 + static bool ad5755_is_voltage_mode(enum ad5755_mode mode) 507 507 { 508 508 switch (mode) { 509 509 case AD5755_MODE_VOLTAGE_0V_5V: ··· 516 516 } 517 517 } 518 518 519 - static int __devinit ad5755_init_channels(struct iio_dev *indio_dev, 520 - const struct ad5755_platform_data *pdata) 519 + static int ad5755_init_channels(struct iio_dev *indio_dev, 520 + const struct ad5755_platform_data *pdata) 521 521 { 522 522 struct ad5755_state *st = iio_priv(indio_dev); 523 523 struct iio_chan_spec *channels = st->channels; ··· 562 562 }, 563 563 }; 564 564 565 - static int __devinit ad5755_probe(struct spi_device *spi) 565 + static int ad5755_probe(struct spi_device *spi) 566 566 { 567 567 enum ad5755_type type = spi_get_device_id(spi)->driver_data; 568 568 const struct ad5755_platform_data *pdata = dev_get_platdata(&spi->dev); ··· 614 614 return ret; 615 615 } 616 616 617 - static int __devexit ad5755_remove(struct spi_device *spi) 617 + static int ad5755_remove(struct spi_device *spi) 618 618 { 619 619 struct iio_dev *indio_dev = spi_get_drvdata(spi); 620 620 ··· 640 640 .owner = THIS_MODULE, 641 641 }, 642 642 .probe = ad5755_probe, 643 - .remove = __devexit_p(ad5755_remove), 643 + .remove = ad5755_remove, 644 644 .id_table = ad5755_id, 645 645 }; 646 646 module_spi_driver(ad5755_driver);
+3 -3
drivers/iio/dac/ad5764.c
··· 273 273 .driver_module = THIS_MODULE, 274 274 }; 275 275 276 - static int __devinit ad5764_probe(struct spi_device *spi) 276 + static int ad5764_probe(struct spi_device *spi) 277 277 { 278 278 enum ad5764_type type = spi_get_device_id(spi)->driver_data; 279 279 struct iio_dev *indio_dev; ··· 340 340 return ret; 341 341 } 342 342 343 - static int __devexit ad5764_remove(struct spi_device *spi) 343 + static int ad5764_remove(struct spi_device *spi) 344 344 { 345 345 struct iio_dev *indio_dev = spi_get_drvdata(spi); 346 346 struct ad5764_state *st = iio_priv(indio_dev); ··· 372 372 .owner = THIS_MODULE, 373 373 }, 374 374 .probe = ad5764_probe, 375 - .remove = __devexit_p(ad5764_remove), 375 + .remove = ad5764_remove, 376 376 .id_table = ad5764_ids, 377 377 }; 378 378 module_spi_driver(ad5764_driver);
+3 -3
drivers/iio/dac/ad5791.c
··· 346 346 .driver_module = THIS_MODULE, 347 347 }; 348 348 349 - static int __devinit ad5791_probe(struct spi_device *spi) 349 + static int ad5791_probe(struct spi_device *spi) 350 350 { 351 351 struct ad5791_platform_data *pdata = spi->dev.platform_data; 352 352 struct iio_dev *indio_dev; ··· 439 439 return ret; 440 440 } 441 441 442 - static int __devexit ad5791_remove(struct spi_device *spi) 442 + static int ad5791_remove(struct spi_device *spi) 443 443 { 444 444 struct iio_dev *indio_dev = spi_get_drvdata(spi); 445 445 struct ad5791_state *st = iio_priv(indio_dev); ··· 475 475 .owner = THIS_MODULE, 476 476 }, 477 477 .probe = ad5791_probe, 478 - .remove = __devexit_p(ad5791_remove), 478 + .remove = ad5791_remove, 479 479 .id_table = ad5791_id, 480 480 }; 481 481 module_spi_driver(ad5791_driver);
+3 -3
drivers/iio/dac/max517.c
··· 156 156 MAX517_CHANNEL(1) 157 157 }; 158 158 159 - static int __devinit max517_probe(struct i2c_client *client, 159 + static int max517_probe(struct i2c_client *client, 160 160 const struct i2c_device_id *id) 161 161 { 162 162 struct max517_data *data; ··· 210 210 return err; 211 211 } 212 212 213 - static int __devexit max517_remove(struct i2c_client *client) 213 + static int max517_remove(struct i2c_client *client) 214 214 { 215 215 iio_device_unregister(i2c_get_clientdata(client)); 216 216 iio_device_free(i2c_get_clientdata(client)); ··· 232 232 .pm = MAX517_PM_OPS, 233 233 }, 234 234 .probe = max517_probe, 235 - .remove = __devexit_p(max517_remove), 235 + .remove = max517_remove, 236 236 .id_table = max517_id, 237 237 }; 238 238 module_i2c_driver(max517_driver);
+4 -4
drivers/iio/dac/mcp4725.c
··· 141 141 .driver_module = THIS_MODULE, 142 142 }; 143 143 144 - static int __devinit mcp4725_probe(struct i2c_client *client, 145 - const struct i2c_device_id *id) 144 + static int mcp4725_probe(struct i2c_client *client, 145 + const struct i2c_device_id *id) 146 146 { 147 147 struct mcp4725_data *data; 148 148 struct iio_dev *indio_dev; ··· 195 195 return err; 196 196 } 197 197 198 - static int __devexit mcp4725_remove(struct i2c_client *client) 198 + static int mcp4725_remove(struct i2c_client *client) 199 199 { 200 200 struct iio_dev *indio_dev = i2c_get_clientdata(client); 201 201 ··· 217 217 .pm = MCP4725_PM_OPS, 218 218 }, 219 219 .probe = mcp4725_probe, 220 - .remove = __devexit_p(mcp4725_remove), 220 + .remove = mcp4725_remove, 221 221 .id_table = mcp4725_id, 222 222 }; 223 223 module_i2c_driver(mcp4725_driver);
+3 -3
drivers/iio/frequency/ad9523.c
··· 959 959 return 0; 960 960 } 961 961 962 - static int __devinit ad9523_probe(struct spi_device *spi) 962 + static int ad9523_probe(struct spi_device *spi) 963 963 { 964 964 struct ad9523_platform_data *pdata = spi->dev.platform_data; 965 965 struct iio_dev *indio_dev; ··· 1020 1020 return ret; 1021 1021 } 1022 1022 1023 - static int __devexit ad9523_remove(struct spi_device *spi) 1023 + static int ad9523_remove(struct spi_device *spi) 1024 1024 { 1025 1025 struct iio_dev *indio_dev = spi_get_drvdata(spi); 1026 1026 struct ad9523_state *st = iio_priv(indio_dev); ··· 1049 1049 .owner = THIS_MODULE, 1050 1050 }, 1051 1051 .probe = ad9523_probe, 1052 - .remove = __devexit_p(ad9523_remove), 1052 + .remove = ad9523_remove, 1053 1053 .id_table = ad9523_id, 1054 1054 }; 1055 1055 module_spi_driver(ad9523_driver);
+3 -3
drivers/iio/frequency/adf4350.c
··· 355 355 .driver_module = THIS_MODULE, 356 356 }; 357 357 358 - static int __devinit adf4350_probe(struct spi_device *spi) 358 + static int adf4350_probe(struct spi_device *spi) 359 359 { 360 360 struct adf4350_platform_data *pdata = spi->dev.platform_data; 361 361 struct iio_dev *indio_dev; ··· 440 440 return ret; 441 441 } 442 442 443 - static int __devexit adf4350_remove(struct spi_device *spi) 443 + static int adf4350_remove(struct spi_device *spi) 444 444 { 445 445 struct iio_dev *indio_dev = spi_get_drvdata(spi); 446 446 struct adf4350_state *st = iio_priv(indio_dev); ··· 476 476 .owner = THIS_MODULE, 477 477 }, 478 478 .probe = adf4350_probe, 479 - .remove = __devexit_p(adf4350_remove), 479 + .remove = adf4350_remove, 480 480 .id_table = adf4350_id, 481 481 }; 482 482 module_spi_driver(adf4350_driver);
+2 -2
drivers/iio/gyro/hid-sensor-gyro-3d.c
··· 278 278 } 279 279 280 280 /* Function to initialize the processing for usage id */ 281 - static int __devinit hid_gyro_3d_probe(struct platform_device *pdev) 281 + static int hid_gyro_3d_probe(struct platform_device *pdev) 282 282 { 283 283 int ret = 0; 284 284 static const char *name = "gyro_3d"; ··· 375 375 } 376 376 377 377 /* Function to deinitialize the processing for usage id */ 378 - static int __devinit hid_gyro_3d_remove(struct platform_device *pdev) 378 + static int hid_gyro_3d_remove(struct platform_device *pdev) 379 379 { 380 380 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; 381 381 struct iio_dev *indio_dev = platform_get_drvdata(pdev);
+4 -4
drivers/iio/light/adjd_s311.c
··· 286 286 .driver_module = THIS_MODULE, 287 287 }; 288 288 289 - static int __devinit adjd_s311_probe(struct i2c_client *client, 290 - const struct i2c_device_id *id) 289 + static int adjd_s311_probe(struct i2c_client *client, 290 + const struct i2c_device_id *id) 291 291 { 292 292 struct adjd_s311_data *data; 293 293 struct iio_dev *indio_dev; ··· 330 330 return err; 331 331 } 332 332 333 - static int __devexit adjd_s311_remove(struct i2c_client *client) 333 + static int adjd_s311_remove(struct i2c_client *client) 334 334 { 335 335 struct iio_dev *indio_dev = i2c_get_clientdata(client); 336 336 struct adjd_s311_data *data = iio_priv(indio_dev); ··· 354 354 .name = ADJD_S311_DRV_NAME, 355 355 }, 356 356 .probe = adjd_s311_probe, 357 - .remove = __devexit_p(adjd_s311_remove), 357 + .remove = adjd_s311_remove, 358 358 .id_table = adjd_s311_id, 359 359 }; 360 360 module_i2c_driver(adjd_s311_driver);
+2 -2
drivers/iio/light/hid-sensor-als.c
··· 245 245 } 246 246 247 247 /* Function to initialize the processing for usage id */ 248 - static int __devinit hid_als_probe(struct platform_device *pdev) 248 + static int hid_als_probe(struct platform_device *pdev) 249 249 { 250 250 int ret = 0; 251 251 static const char *name = "als"; ··· 341 341 } 342 342 343 343 /* Function to deinitialize the processing for usage id */ 344 - static int __devinit hid_als_remove(struct platform_device *pdev) 344 + static int hid_als_remove(struct platform_device *pdev) 345 345 { 346 346 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; 347 347 struct iio_dev *indio_dev = platform_get_drvdata(pdev);
+9 -10
drivers/iio/light/lm3533-als.c
··· 718 718 .attrs = lm3533_als_attributes 719 719 }; 720 720 721 - static int __devinit lm3533_als_set_input_mode(struct lm3533_als *als, 722 - bool pwm_mode) 721 + static int lm3533_als_set_input_mode(struct lm3533_als *als, bool pwm_mode) 723 722 { 724 723 u8 mask = LM3533_ALS_INPUT_MODE_MASK; 725 724 u8 val; ··· 739 740 return 0; 740 741 } 741 742 742 - static int __devinit lm3533_als_set_resistor(struct lm3533_als *als, u8 val) 743 + static int lm3533_als_set_resistor(struct lm3533_als *als, u8 val) 743 744 { 744 745 int ret; 745 746 ··· 755 756 return 0; 756 757 } 757 758 758 - static int __devinit lm3533_als_setup(struct lm3533_als *als, 759 - struct lm3533_als_platform_data *pdata) 759 + static int lm3533_als_setup(struct lm3533_als *als, 760 + struct lm3533_als_platform_data *pdata) 760 761 { 761 762 int ret; 762 763 ··· 774 775 return 0; 775 776 } 776 777 777 - static int __devinit lm3533_als_setup_irq(struct lm3533_als *als, void *dev) 778 + static int lm3533_als_setup_irq(struct lm3533_als *als, void *dev) 778 779 { 779 780 u8 mask = LM3533_ALS_INT_ENABLE_MASK; 780 781 int ret; ··· 798 799 return 0; 799 800 } 800 801 801 - static int __devinit lm3533_als_enable(struct lm3533_als *als) 802 + static int lm3533_als_enable(struct lm3533_als *als) 802 803 { 803 804 u8 mask = LM3533_ALS_ENABLE_MASK; 804 805 int ret; ··· 829 830 .read_raw = &lm3533_als_read_raw, 830 831 }; 831 832 832 - static int __devinit lm3533_als_probe(struct platform_device *pdev) 833 + static int lm3533_als_probe(struct platform_device *pdev) 833 834 { 834 835 struct lm3533 *lm3533; 835 836 struct lm3533_als_platform_data *pdata; ··· 900 901 return ret; 901 902 } 902 903 903 - static int __devexit lm3533_als_remove(struct platform_device *pdev) 904 + static int lm3533_als_remove(struct platform_device *pdev) 904 905 { 905 906 struct iio_dev *indio_dev = platform_get_drvdata(pdev); 906 907 struct lm3533_als *als = iio_priv(indio_dev); ··· 921 922 .owner = THIS_MODULE, 922 923 }, 923 924 .probe = lm3533_als_probe, 924 - .remove = __devexit_p(lm3533_als_remove), 925 + .remove = lm3533_als_remove, 925 926 }; 926 927 module_platform_driver(lm3533_als_driver); 927 928
+4 -4
drivers/iio/light/vcnl4000.c
··· 150 150 .driver_module = THIS_MODULE, 151 151 }; 152 152 153 - static int __devinit vcnl4000_probe(struct i2c_client *client, 154 - const struct i2c_device_id *id) 153 + static int vcnl4000_probe(struct i2c_client *client, 154 + const struct i2c_device_id *id) 155 155 { 156 156 struct vcnl4000_data *data; 157 157 struct iio_dev *indio_dev; ··· 190 190 return ret; 191 191 } 192 192 193 - static int __devexit vcnl4000_remove(struct i2c_client *client) 193 + static int vcnl4000_remove(struct i2c_client *client) 194 194 { 195 195 struct iio_dev *indio_dev = i2c_get_clientdata(client); 196 196 ··· 206 206 .owner = THIS_MODULE, 207 207 }, 208 208 .probe = vcnl4000_probe, 209 - .remove = __devexit_p(vcnl4000_remove), 209 + .remove = vcnl4000_remove, 210 210 .id_table = vcnl4000_id, 211 211 }; 212 212
+2 -2
drivers/iio/magnetometer/hid-sensor-magn-3d.c
··· 279 279 } 280 280 281 281 /* Function to initialize the processing for usage id */ 282 - static int __devinit hid_magn_3d_probe(struct platform_device *pdev) 282 + static int hid_magn_3d_probe(struct platform_device *pdev) 283 283 { 284 284 int ret = 0; 285 285 static char *name = "magn_3d"; ··· 376 376 } 377 377 378 378 /* Function to deinitialize the processing for usage id */ 379 - static int __devinit hid_magn_3d_remove(struct platform_device *pdev) 379 + static int hid_magn_3d_remove(struct platform_device *pdev) 380 380 { 381 381 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; 382 382 struct iio_dev *indio_dev = platform_get_drvdata(pdev);