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

i2c: Make remove callback return void

The value returned by an i2c driver's remove function is mostly ignored.
(Only an error message is printed if the value is non-zero that the
error is ignored.)

So change the prototype of the remove function to return no value. This
way driver authors are not tempted to assume that passing an error to
the upper layer is a good idea. All drivers are adapted accordingly.
There is no intended change of behaviour, all callbacks were prepared to
return 0 before.

Reviewed-by: Peter Senna Tschudin <peter.senna@gmail.com>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
Reviewed-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Crt Mori <cmo@melexis.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Marek Behún <kabel@kernel.org> # for leds-turris-omnia
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Machata <petrm@nvidia.com> # for mlxsw
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com> # for surface3_power
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> # for bmc150-accel-i2c + kxcjk-1013
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> # for media/* + staging/media/*
Acked-by: Miguel Ojeda <ojeda@kernel.org> # for auxdisplay/ht16k33 + auxdisplay/lcd2s
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # for versaclock5
Reviewed-by: Ajay Gupta <ajayg@nvidia.com> # for ucsi_ccg
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # for iio
Acked-by: Peter Rosin <peda@axentia.se> # for i2c-mux-*, max9860
Acked-by: Adrien Grassein <adrien.grassein@gmail.com> # for lontium-lt8912b
Reviewed-by: Jean Delvare <jdelvare@suse.de> # for hwmon, i2c-core and i2c/muxes
Acked-by: Corey Minyard <cminyard@mvista.com> # for IPMI
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> # for drivers/power
Acked-by: Krzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>

authored by

Uwe Kleine-König and committed by
Wolfram Sang
ed5c2f5f 6a8f359c

+646 -1733
+1 -1
Documentation/i2c/writing-clients.rst
··· 156 156 :: 157 157 158 158 static int foo_probe(struct i2c_client *client); 159 - static int foo_remove(struct i2c_client *client); 159 + static void foo_remove(struct i2c_client *client); 160 160 161 161 Remember that the i2c_driver does not create those client handles. The 162 162 handle may be used during foo_probe(). If foo_probe() reports success
+1 -2
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
··· 178 178 return ret; 179 179 } 180 180 181 - static int mcu_remove(struct i2c_client *client) 181 + static void mcu_remove(struct i2c_client *client) 182 182 { 183 183 struct mcu *mcu = i2c_get_clientdata(client); 184 184 ··· 193 193 194 194 mcu_gpiochip_remove(mcu); 195 195 kfree(mcu); 196 - return 0; 197 196 } 198 197 199 198 static const struct i2c_device_id mcu_ids[] = {
+1 -3
drivers/auxdisplay/ht16k33.c
··· 775 775 return err; 776 776 } 777 777 778 - static int ht16k33_remove(struct i2c_client *client) 778 + static void ht16k33_remove(struct i2c_client *client) 779 779 { 780 780 struct ht16k33_priv *priv = i2c_get_clientdata(client); 781 781 struct ht16k33_fbdev *fbdev = &priv->fbdev; ··· 796 796 device_remove_file(&client->dev, &dev_attr_map_seg14); 797 797 break; 798 798 } 799 - 800 - return 0; 801 799 } 802 800 803 801 static const struct i2c_device_id ht16k33_i2c_match[] = {
+1 -2
drivers/auxdisplay/lcd2s.c
··· 340 340 return err; 341 341 } 342 342 343 - static int lcd2s_i2c_remove(struct i2c_client *i2c) 343 + static void lcd2s_i2c_remove(struct i2c_client *i2c) 344 344 { 345 345 struct lcd2s_data *lcd2s = i2c_get_clientdata(i2c); 346 346 347 347 charlcd_unregister(lcd2s->charlcd); 348 348 charlcd_free(lcd2s->charlcd); 349 - return 0; 350 349 } 351 350 352 351 static const struct i2c_device_id lcd2s_i2c_id[] = {
+1 -3
drivers/char/ipmi/ipmb_dev_int.c
··· 341 341 return 0; 342 342 } 343 343 344 - static int ipmb_remove(struct i2c_client *client) 344 + static void ipmb_remove(struct i2c_client *client) 345 345 { 346 346 struct ipmb_dev *ipmb_dev = i2c_get_clientdata(client); 347 347 348 348 i2c_slave_unregister(client); 349 349 misc_deregister(&ipmb_dev->miscdev); 350 - 351 - return 0; 352 350 } 353 351 354 352 static const struct i2c_device_id ipmb_id[] = {
+1 -3
drivers/char/ipmi/ipmi_ipmb.c
··· 424 424 /* We don't fetch events here. */ 425 425 } 426 426 427 - static int ipmi_ipmb_remove(struct i2c_client *client) 427 + static void ipmi_ipmb_remove(struct i2c_client *client) 428 428 { 429 429 struct ipmi_ipmb_dev *iidev = i2c_get_clientdata(client); 430 430 ··· 438 438 ipmi_ipmb_stop_thread(iidev); 439 439 440 440 ipmi_unregister_smi(iidev->intf); 441 - 442 - return 0; 443 441 } 444 442 445 443 static int ipmi_ipmb_probe(struct i2c_client *client)
+2 -4
drivers/char/ipmi/ipmi_ssif.c
··· 1281 1281 } 1282 1282 } 1283 1283 1284 - static int ssif_remove(struct i2c_client *client) 1284 + static void ssif_remove(struct i2c_client *client) 1285 1285 { 1286 1286 struct ssif_info *ssif_info = i2c_get_clientdata(client); 1287 1287 struct ssif_addr_info *addr_info; 1288 1288 1289 1289 if (!ssif_info) 1290 - return 0; 1290 + return; 1291 1291 1292 1292 /* 1293 1293 * After this point, we won't deliver anything asychronously ··· 1303 1303 } 1304 1304 1305 1305 kfree(ssif_info); 1306 - 1307 - return 0; 1308 1306 } 1309 1307 1310 1308 static int read_response(struct i2c_client *client, unsigned char *resp)
+1 -3
drivers/char/tpm/st33zp24/i2c.c
··· 264 264 * @param: client, the i2c_client description (TPM I2C description). 265 265 * @return: 0 in case of success. 266 266 */ 267 - static int st33zp24_i2c_remove(struct i2c_client *client) 267 + static void st33zp24_i2c_remove(struct i2c_client *client) 268 268 { 269 269 struct tpm_chip *chip = i2c_get_clientdata(client); 270 270 271 271 st33zp24_remove(chip); 272 - 273 - return 0; 274 272 } 275 273 276 274 static const struct i2c_device_id st33zp24_i2c_id[] = {
+1 -2
drivers/char/tpm/tpm_i2c_atmel.c
··· 179 179 return tpm_chip_register(chip); 180 180 } 181 181 182 - static int i2c_atmel_remove(struct i2c_client *client) 182 + static void i2c_atmel_remove(struct i2c_client *client) 183 183 { 184 184 struct device *dev = &(client->dev); 185 185 struct tpm_chip *chip = dev_get_drvdata(dev); 186 186 tpm_chip_unregister(chip); 187 - return 0; 188 187 } 189 188 190 189 static const struct i2c_device_id i2c_atmel_id[] = {
+1 -3
drivers/char/tpm/tpm_i2c_infineon.c
··· 706 706 return rc; 707 707 } 708 708 709 - static int tpm_tis_i2c_remove(struct i2c_client *client) 709 + static void tpm_tis_i2c_remove(struct i2c_client *client) 710 710 { 711 711 struct tpm_chip *chip = tpm_dev.chip; 712 712 713 713 tpm_chip_unregister(chip); 714 714 release_locality(chip, tpm_dev.locality, 1); 715 715 tpm_dev.client = NULL; 716 - 717 - return 0; 718 716 } 719 717 720 718 static struct i2c_driver tpm_tis_i2c_driver = {
+1 -2
drivers/char/tpm/tpm_i2c_nuvoton.c
··· 622 622 return tpm_chip_register(chip); 623 623 } 624 624 625 - static int i2c_nuvoton_remove(struct i2c_client *client) 625 + static void i2c_nuvoton_remove(struct i2c_client *client) 626 626 { 627 627 struct tpm_chip *chip = i2c_get_clientdata(client); 628 628 629 629 tpm_chip_unregister(chip); 630 - return 0; 631 630 } 632 631 633 632 static const struct i2c_device_id i2c_nuvoton_id[] = {
+1 -2
drivers/char/tpm/tpm_tis_i2c.c
··· 351 351 NULL); 352 352 } 353 353 354 - static int tpm_tis_i2c_remove(struct i2c_client *client) 354 + static void tpm_tis_i2c_remove(struct i2c_client *client) 355 355 { 356 356 struct tpm_chip *chip = i2c_get_clientdata(client); 357 357 358 358 tpm_chip_unregister(chip); 359 359 tpm_tis_remove(chip); 360 - return 0; 361 360 } 362 361 363 362 static const struct i2c_device_id tpm_tis_i2c_id[] = {
+2 -4
drivers/char/tpm/tpm_tis_i2c_cr50.c
··· 763 763 * - 0: Success. 764 764 * - -errno: A POSIX error code. 765 765 */ 766 - static int tpm_cr50_i2c_remove(struct i2c_client *client) 766 + static void tpm_cr50_i2c_remove(struct i2c_client *client) 767 767 { 768 768 struct tpm_chip *chip = i2c_get_clientdata(client); 769 769 struct device *dev = &client->dev; 770 770 771 771 if (!chip) { 772 772 dev_crit(dev, "Could not get client data at remove, memory corruption ahead\n"); 773 - return 0; 773 + return; 774 774 } 775 775 776 776 tpm_chip_unregister(chip); 777 777 tpm_cr50_release_locality(chip, true); 778 - 779 - return 0; 780 778 } 781 779 782 780 static SIMPLE_DEV_PM_OPS(cr50_i2c_pm, tpm_pm_suspend, tpm_pm_resume);
+1 -2
drivers/clk/clk-cdce706.c
··· 665 665 cdce); 666 666 } 667 667 668 - static int cdce706_remove(struct i2c_client *client) 668 + static void cdce706_remove(struct i2c_client *client) 669 669 { 670 670 of_clk_del_provider(client->dev.of_node); 671 - return 0; 672 671 } 673 672 674 673
+1 -3
drivers/clk/clk-cs2000-cp.c
··· 557 557 return 0; 558 558 } 559 559 560 - static int cs2000_remove(struct i2c_client *client) 560 + static void cs2000_remove(struct i2c_client *client) 561 561 { 562 562 struct cs2000_priv *priv = i2c_get_clientdata(client); 563 563 struct device *dev = priv_to_dev(priv); ··· 566 566 of_clk_del_provider(np); 567 567 568 568 clk_hw_unregister(&priv->hw); 569 - 570 - return 0; 571 569 } 572 570 573 571 static int cs2000_probe(struct i2c_client *client)
+1 -2
drivers/clk/clk-si514.c
··· 370 370 return 0; 371 371 } 372 372 373 - static int si514_remove(struct i2c_client *client) 373 + static void si514_remove(struct i2c_client *client) 374 374 { 375 375 of_clk_del_provider(client->dev.of_node); 376 - return 0; 377 376 } 378 377 379 378 static const struct i2c_device_id si514_id[] = {
+1 -3
drivers/clk/clk-si5341.c
··· 1796 1796 return err; 1797 1797 } 1798 1798 1799 - static int si5341_remove(struct i2c_client *client) 1799 + static void si5341_remove(struct i2c_client *client) 1800 1800 { 1801 1801 struct clk_si5341 *data = i2c_get_clientdata(client); 1802 1802 int i; ··· 1807 1807 if (data->clk[i].vddo_reg) 1808 1808 regulator_disable(data->clk[i].vddo_reg); 1809 1809 } 1810 - 1811 - return 0; 1812 1810 } 1813 1811 1814 1812 static const struct i2c_device_id si5341_id[] = {
+1 -3
drivers/clk/clk-si5351.c
··· 1651 1651 return 0; 1652 1652 } 1653 1653 1654 - static int si5351_i2c_remove(struct i2c_client *client) 1654 + static void si5351_i2c_remove(struct i2c_client *client) 1655 1655 { 1656 1656 of_clk_del_provider(client->dev.of_node); 1657 - 1658 - return 0; 1659 1657 } 1660 1658 1661 1659 static struct i2c_driver si5351_driver = {
+1 -2
drivers/clk/clk-si570.c
··· 498 498 return 0; 499 499 } 500 500 501 - static int si570_remove(struct i2c_client *client) 501 + static void si570_remove(struct i2c_client *client) 502 502 { 503 503 of_clk_del_provider(client->dev.of_node); 504 - return 0; 505 504 } 506 505 507 506 static const struct of_device_id clk_si570_of_match[] = {
+1 -3
drivers/clk/clk-versaclock5.c
··· 1138 1138 return ret; 1139 1139 } 1140 1140 1141 - static int vc5_remove(struct i2c_client *client) 1141 + static void vc5_remove(struct i2c_client *client) 1142 1142 { 1143 1143 struct vc5_driver_data *vc5 = i2c_get_clientdata(client); 1144 1144 ··· 1146 1146 1147 1147 if (vc5->chip_info->flags & VC5_HAS_INTERNAL_XTAL) 1148 1148 clk_unregister_fixed_rate(vc5->pin_xin); 1149 - 1150 - return 0; 1151 1149 } 1152 1150 1153 1151 static int __maybe_unused vc5_suspend(struct device *dev)
+2 -4
drivers/crypto/atmel-ecc.c
··· 343 343 return ret; 344 344 } 345 345 346 - static int atmel_ecc_remove(struct i2c_client *client) 346 + static void atmel_ecc_remove(struct i2c_client *client) 347 347 { 348 348 struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); 349 349 ··· 358 358 * accessing the freed memory. 359 359 */ 360 360 dev_emerg(&client->dev, "Device is busy, expect memory corruption.\n"); 361 - return 0; 361 + return; 362 362 } 363 363 364 364 crypto_unregister_kpp(&atmel_ecdh_nist_p256); ··· 366 366 spin_lock(&driver_data.i2c_list_lock); 367 367 list_del(&i2c_priv->i2c_client_list_node); 368 368 spin_unlock(&driver_data.i2c_list_lock); 369 - 370 - return 0; 371 369 } 372 370 373 371 #ifdef CONFIG_OF
+2 -4
drivers/crypto/atmel-sha204a.c
··· 116 116 return ret; 117 117 } 118 118 119 - static int atmel_sha204a_remove(struct i2c_client *client) 119 + static void atmel_sha204a_remove(struct i2c_client *client) 120 120 { 121 121 struct atmel_i2c_client_priv *i2c_priv = i2c_get_clientdata(client); 122 122 123 123 if (atomic_read(&i2c_priv->tfm_count)) { 124 124 dev_emerg(&client->dev, "Device is busy, will remove it anyhow\n"); 125 - return 0; 125 + return; 126 126 } 127 127 128 128 kfree((void *)i2c_priv->hwrng.priv); 129 - 130 - return 0; 131 129 } 132 130 133 131 static const struct of_device_id atmel_sha204a_dt_ids[] = {
+1 -3
drivers/extcon/extcon-rt8973a.c
··· 646 646 return 0; 647 647 } 648 648 649 - static int rt8973a_muic_i2c_remove(struct i2c_client *i2c) 649 + static void rt8973a_muic_i2c_remove(struct i2c_client *i2c) 650 650 { 651 651 struct rt8973a_muic_info *info = i2c_get_clientdata(i2c); 652 652 653 653 regmap_del_irq_chip(info->irq, info->irq_data); 654 - 655 - return 0; 656 654 } 657 655 658 656 static const struct of_device_id rt8973a_dt_match[] = {
+1 -3
drivers/gpio/gpio-adp5588.c
··· 409 409 return 0; 410 410 } 411 411 412 - static int adp5588_gpio_remove(struct i2c_client *client) 412 + static void adp5588_gpio_remove(struct i2c_client *client) 413 413 { 414 414 struct adp5588_gpio *dev = i2c_get_clientdata(client); 415 415 416 416 if (dev->client->irq) 417 417 free_irq(dev->client->irq, dev); 418 - 419 - return 0; 420 418 } 421 419 422 420 static const struct i2c_device_id adp5588_gpio_id[] = {
+1 -3
drivers/gpio/gpio-max7300.c
··· 48 48 return __max730x_probe(ts); 49 49 } 50 50 51 - static int max7300_remove(struct i2c_client *client) 51 + static void max7300_remove(struct i2c_client *client) 52 52 { 53 53 __max730x_remove(&client->dev); 54 - 55 - return 0; 56 54 } 57 55 58 56 static const struct i2c_device_id max7300_id[] = {
+1 -3
drivers/gpio/gpio-pca953x.c
··· 1101 1101 return ret; 1102 1102 } 1103 1103 1104 - static int pca953x_remove(struct i2c_client *client) 1104 + static void pca953x_remove(struct i2c_client *client) 1105 1105 { 1106 1106 struct pca953x_platform_data *pdata = dev_get_platdata(&client->dev); 1107 1107 struct pca953x_chip *chip = i2c_get_clientdata(client); ··· 1112 1112 } 1113 1113 1114 1114 regulator_disable(chip->regulator); 1115 - 1116 - return 0; 1117 1115 } 1118 1116 1119 1117 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/gpio/gpio-pcf857x.c
··· 399 399 return status; 400 400 } 401 401 402 - static int pcf857x_remove(struct i2c_client *client) 402 + static void pcf857x_remove(struct i2c_client *client) 403 403 { 404 404 struct pcf857x_platform_data *pdata = dev_get_platdata(&client->dev); 405 405 struct pcf857x *gpio = i2c_get_clientdata(client); ··· 407 407 if (pdata && pdata->teardown) 408 408 pdata->teardown(client, gpio->chip.base, gpio->chip.ngpio, 409 409 pdata->context); 410 - 411 - return 0; 412 410 } 413 411 414 412 static void pcf857x_shutdown(struct i2c_client *client)
+1 -3
drivers/gpio/gpio-tpic2810.c
··· 126 126 return 0; 127 127 } 128 128 129 - static int tpic2810_remove(struct i2c_client *client) 129 + static void tpic2810_remove(struct i2c_client *client) 130 130 { 131 131 struct tpic2810 *gpio = i2c_get_clientdata(client); 132 132 133 133 gpiochip_remove(&gpio->chip); 134 - 135 - return 0; 136 134 } 137 135 138 136 static const struct i2c_device_id tpic2810_id_table[] = {
+1 -3
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
··· 1336 1336 return ret; 1337 1337 } 1338 1338 1339 - static int adv7511_remove(struct i2c_client *i2c) 1339 + static void adv7511_remove(struct i2c_client *i2c) 1340 1340 { 1341 1341 struct adv7511 *adv7511 = i2c_get_clientdata(i2c); 1342 1342 ··· 1353 1353 1354 1354 i2c_unregister_device(adv7511->i2c_packet); 1355 1355 i2c_unregister_device(adv7511->i2c_edid); 1356 - 1357 - return 0; 1358 1356 } 1359 1357 1360 1358 static const struct i2c_device_id adv7511_i2c_ids[] = {
+1 -3
drivers/gpu/drm/bridge/analogix/analogix-anx6345.c
··· 787 787 return err; 788 788 } 789 789 790 - static int anx6345_i2c_remove(struct i2c_client *client) 790 + static void anx6345_i2c_remove(struct i2c_client *client) 791 791 { 792 792 struct anx6345 *anx6345 = i2c_get_clientdata(client); 793 793 ··· 798 798 kfree(anx6345->edid); 799 799 800 800 mutex_destroy(&anx6345->lock); 801 - 802 - return 0; 803 801 } 804 802 805 803 static const struct i2c_device_id anx6345_id[] = {
+1 -3
drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c
··· 1357 1357 return err; 1358 1358 } 1359 1359 1360 - static int anx78xx_i2c_remove(struct i2c_client *client) 1360 + static void anx78xx_i2c_remove(struct i2c_client *client) 1361 1361 { 1362 1362 struct anx78xx *anx78xx = i2c_get_clientdata(client); 1363 1363 ··· 1366 1366 unregister_i2c_dummy_clients(anx78xx); 1367 1367 1368 1368 kfree(anx78xx->edid); 1369 - 1370 - return 0; 1371 1369 } 1372 1370 1373 1371 static const struct i2c_device_id anx78xx_id[] = {
+1 -3
drivers/gpu/drm/bridge/analogix/anx7625.c
··· 2689 2689 return ret; 2690 2690 } 2691 2691 2692 - static int anx7625_i2c_remove(struct i2c_client *client) 2692 + static void anx7625_i2c_remove(struct i2c_client *client) 2693 2693 { 2694 2694 struct anx7625_data *platform = i2c_get_clientdata(client); 2695 2695 ··· 2709 2709 2710 2710 if (platform->pdata.audio_en) 2711 2711 anx7625_unregister_audio(platform); 2712 - 2713 - return 0; 2714 2712 } 2715 2713 2716 2714 static const struct i2c_device_id anx7625_id[] = {
+1 -3
drivers/gpu/drm/bridge/chrontel-ch7033.c
··· 583 583 return 0; 584 584 } 585 585 586 - static int ch7033_remove(struct i2c_client *client) 586 + static void ch7033_remove(struct i2c_client *client) 587 587 { 588 588 struct device *dev = &client->dev; 589 589 struct ch7033_priv *priv = dev_get_drvdata(dev); 590 590 591 591 drm_bridge_remove(&priv->bridge); 592 - 593 - return 0; 594 592 } 595 593 596 594 static const struct of_device_id ch7033_dt_ids[] = {
+1 -3
drivers/gpu/drm/bridge/cros-ec-anx7688.c
··· 159 159 return 0; 160 160 } 161 161 162 - static int cros_ec_anx7688_bridge_remove(struct i2c_client *client) 162 + static void cros_ec_anx7688_bridge_remove(struct i2c_client *client) 163 163 { 164 164 struct cros_ec_anx7688 *anx7688 = i2c_get_clientdata(client); 165 165 166 166 drm_bridge_remove(&anx7688->bridge); 167 - 168 - return 0; 169 167 } 170 168 171 169 static const struct of_device_id cros_ec_anx7688_bridge_match_table[] = {
+1 -3
drivers/gpu/drm/bridge/ite-it6505.c
··· 3316 3316 return 0; 3317 3317 } 3318 3318 3319 - static int it6505_i2c_remove(struct i2c_client *client) 3319 + static void it6505_i2c_remove(struct i2c_client *client) 3320 3320 { 3321 3321 struct it6505 *it6505 = i2c_get_clientdata(client); 3322 3322 ··· 3324 3324 drm_dp_aux_unregister(&it6505->aux); 3325 3325 it6505_debugfs_remove(it6505); 3326 3326 it6505_poweroff(it6505); 3327 - 3328 - return 0; 3329 3327 } 3330 3328 3331 3329 static const struct i2c_device_id it6505_id[] = {
+1 -3
drivers/gpu/drm/bridge/ite-it66121.c
··· 1623 1623 return 0; 1624 1624 } 1625 1625 1626 - static int it66121_remove(struct i2c_client *client) 1626 + static void it66121_remove(struct i2c_client *client) 1627 1627 { 1628 1628 struct it66121_ctx *ctx = i2c_get_clientdata(client); 1629 1629 1630 1630 ite66121_power_off(ctx); 1631 1631 drm_bridge_remove(&ctx->bridge); 1632 1632 mutex_destroy(&ctx->lock); 1633 - 1634 - return 0; 1635 1633 } 1636 1634 1637 1635 static const struct of_device_id it66121_dt_match[] = {
+1 -2
drivers/gpu/drm/bridge/lontium-lt8912b.c
··· 714 714 return ret; 715 715 } 716 716 717 - static int lt8912_remove(struct i2c_client *client) 717 + static void lt8912_remove(struct i2c_client *client) 718 718 { 719 719 struct lt8912 *lt = i2c_get_clientdata(client); 720 720 ··· 722 722 drm_bridge_remove(&lt->bridge); 723 723 lt8912_free_i2c(lt); 724 724 lt8912_put_dt(lt); 725 - return 0; 726 725 } 727 726 728 727 static const struct of_device_id lt8912_dt_match[] = {
+1 -3
drivers/gpu/drm/bridge/lontium-lt9211.c
··· 766 766 return ret; 767 767 } 768 768 769 - static int lt9211_remove(struct i2c_client *client) 769 + static void lt9211_remove(struct i2c_client *client) 770 770 { 771 771 struct lt9211 *ctx = i2c_get_clientdata(client); 772 772 773 773 drm_bridge_remove(&ctx->bridge); 774 - 775 - return 0; 776 774 } 777 775 778 776 static struct i2c_device_id lt9211_id[] = {
+1 -3
drivers/gpu/drm/bridge/lontium-lt9611.c
··· 1216 1216 return ret; 1217 1217 } 1218 1218 1219 - static int lt9611_remove(struct i2c_client *client) 1219 + static void lt9611_remove(struct i2c_client *client) 1220 1220 { 1221 1221 struct lt9611 *lt9611 = i2c_get_clientdata(client); 1222 1222 ··· 1228 1228 1229 1229 of_node_put(lt9611->dsi1_node); 1230 1230 of_node_put(lt9611->dsi0_node); 1231 - 1232 - return 0; 1233 1231 } 1234 1232 1235 1233 static struct i2c_device_id lt9611_id[] = {
+1 -3
drivers/gpu/drm/bridge/lontium-lt9611uxc.c
··· 978 978 return ret; 979 979 } 980 980 981 - static int lt9611uxc_remove(struct i2c_client *client) 981 + static void lt9611uxc_remove(struct i2c_client *client) 982 982 { 983 983 struct lt9611uxc *lt9611uxc = i2c_get_clientdata(client); 984 984 ··· 993 993 994 994 of_node_put(lt9611uxc->dsi1_node); 995 995 of_node_put(lt9611uxc->dsi0_node); 996 - 997 - return 0; 998 996 } 999 997 1000 998 static struct i2c_device_id lt9611uxc_id[] = {
+2 -6
drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
··· 355 355 return ge_b850v3_register(); 356 356 } 357 357 358 - static int stdp4028_ge_b850v3_fw_remove(struct i2c_client *stdp4028_i2c) 358 + static void stdp4028_ge_b850v3_fw_remove(struct i2c_client *stdp4028_i2c) 359 359 { 360 360 ge_b850v3_lvds_remove(); 361 - 362 - return 0; 363 361 } 364 362 365 363 static const struct i2c_device_id stdp4028_ge_b850v3_fw_i2c_table[] = { ··· 403 405 return ge_b850v3_register(); 404 406 } 405 407 406 - static int stdp2690_ge_b850v3_fw_remove(struct i2c_client *stdp2690_i2c) 408 + static void stdp2690_ge_b850v3_fw_remove(struct i2c_client *stdp2690_i2c) 407 409 { 408 410 ge_b850v3_lvds_remove(); 409 - 410 - return 0; 411 411 } 412 412 413 413 static const struct i2c_device_id stdp2690_ge_b850v3_fw_i2c_table[] = {
+1 -3
drivers/gpu/drm/bridge/nxp-ptn3460.c
··· 315 315 return 0; 316 316 } 317 317 318 - static int ptn3460_remove(struct i2c_client *client) 318 + static void ptn3460_remove(struct i2c_client *client) 319 319 { 320 320 struct ptn3460_bridge *ptn_bridge = i2c_get_clientdata(client); 321 321 322 322 drm_bridge_remove(&ptn_bridge->bridge); 323 - 324 - return 0; 325 323 } 326 324 327 325 static const struct i2c_device_id ptn3460_i2c_table[] = {
+1 -3
drivers/gpu/drm/bridge/parade-ps8622.c
··· 520 520 return 0; 521 521 } 522 522 523 - static int ps8622_remove(struct i2c_client *client) 523 + static void ps8622_remove(struct i2c_client *client) 524 524 { 525 525 struct ps8622_bridge *ps8622 = i2c_get_clientdata(client); 526 526 527 527 backlight_device_unregister(ps8622->bl); 528 528 drm_bridge_remove(&ps8622->bridge); 529 - 530 - return 0; 531 529 } 532 530 533 531 static const struct i2c_device_id ps8622_i2c_table[] = {
+1 -3
drivers/gpu/drm/bridge/sii902x.c
··· 1145 1145 return ret; 1146 1146 } 1147 1147 1148 - static int sii902x_remove(struct i2c_client *client) 1148 + static void sii902x_remove(struct i2c_client *client) 1149 1149 1150 1150 { 1151 1151 struct sii902x *sii902x = i2c_get_clientdata(client); ··· 1154 1154 drm_bridge_remove(&sii902x->bridge); 1155 1155 regulator_bulk_disable(ARRAY_SIZE(sii902x->supplies), 1156 1156 sii902x->supplies); 1157 - 1158 - return 0; 1159 1157 } 1160 1158 1161 1159 static const struct of_device_id sii902x_dt_ids[] = {
+1 -3
drivers/gpu/drm/bridge/sii9234.c
··· 936 936 return 0; 937 937 } 938 938 939 - static int sii9234_remove(struct i2c_client *client) 939 + static void sii9234_remove(struct i2c_client *client) 940 940 { 941 941 struct sii9234 *ctx = i2c_get_clientdata(client); 942 942 943 943 sii9234_cable_out(ctx); 944 944 drm_bridge_remove(&ctx->bridge); 945 - 946 - return 0; 947 945 } 948 946 949 947 static const struct of_device_id sii9234_dt_match[] = {
+1 -3
drivers/gpu/drm/bridge/sil-sii8620.c
··· 2346 2346 return 0; 2347 2347 } 2348 2348 2349 - static int sii8620_remove(struct i2c_client *client) 2349 + static void sii8620_remove(struct i2c_client *client) 2350 2350 { 2351 2351 struct sii8620 *ctx = i2c_get_clientdata(client); 2352 2352 ··· 2360 2360 sii8620_cable_out(ctx); 2361 2361 } 2362 2362 drm_bridge_remove(&ctx->bridge); 2363 - 2364 - return 0; 2365 2363 } 2366 2364 2367 2365 static const struct of_device_id sii8620_dt_match[] = {
+1 -3
drivers/gpu/drm/bridge/tc358767.c
··· 2194 2194 return 0; 2195 2195 } 2196 2196 2197 - static int tc_remove(struct i2c_client *client) 2197 + static void tc_remove(struct i2c_client *client) 2198 2198 { 2199 2199 struct tc_data *tc = i2c_get_clientdata(client); 2200 2200 2201 2201 drm_bridge_remove(&tc->bridge); 2202 - 2203 - return 0; 2204 2202 } 2205 2203 2206 2204 static const struct i2c_device_id tc358767_i2c_ids[] = {
+1 -3
drivers/gpu/drm/bridge/tc358768.c
··· 1072 1072 return mipi_dsi_host_register(&priv->dsi_host); 1073 1073 } 1074 1074 1075 - static int tc358768_i2c_remove(struct i2c_client *client) 1075 + static void tc358768_i2c_remove(struct i2c_client *client) 1076 1076 { 1077 1077 struct tc358768_priv *priv = i2c_get_clientdata(client); 1078 1078 1079 1079 mipi_dsi_host_unregister(&priv->dsi_host); 1080 - 1081 - return 0; 1082 1080 } 1083 1081 1084 1082 static struct i2c_driver tc358768_driver = {
+1 -3
drivers/gpu/drm/bridge/tc358775.c
··· 704 704 return ret; 705 705 } 706 706 707 - static int tc_remove(struct i2c_client *client) 707 + static void tc_remove(struct i2c_client *client) 708 708 { 709 709 struct tc_data *tc = i2c_get_clientdata(client); 710 710 711 711 drm_bridge_remove(&tc->bridge); 712 - 713 - return 0; 714 712 } 715 713 716 714 static const struct i2c_device_id tc358775_i2c_ids[] = {
+1 -3
drivers/gpu/drm/bridge/ti-dlpc3433.c
··· 379 379 return ret; 380 380 } 381 381 382 - static int dlpc3433_remove(struct i2c_client *client) 382 + static void dlpc3433_remove(struct i2c_client *client) 383 383 { 384 384 struct dlpc *dlpc = i2c_get_clientdata(client); 385 385 386 386 drm_bridge_remove(&dlpc->bridge); 387 387 of_node_put(dlpc->host_node); 388 - 389 - return 0; 390 388 } 391 389 392 390 static const struct i2c_device_id dlpc3433_id[] = {
+1 -3
drivers/gpu/drm/bridge/ti-sn65dsi83.c
··· 708 708 return ret; 709 709 } 710 710 711 - static int sn65dsi83_remove(struct i2c_client *client) 711 + static void sn65dsi83_remove(struct i2c_client *client) 712 712 { 713 713 struct sn65dsi83 *ctx = i2c_get_clientdata(client); 714 714 715 715 drm_bridge_remove(&ctx->bridge); 716 - 717 - return 0; 718 716 } 719 717 720 718 static struct i2c_device_id sn65dsi83_id[] = {
+1 -3
drivers/gpu/drm/bridge/ti-tfp410.c
··· 394 394 return tfp410_init(&client->dev, true); 395 395 } 396 396 397 - static int tfp410_i2c_remove(struct i2c_client *client) 397 + static void tfp410_i2c_remove(struct i2c_client *client) 398 398 { 399 399 tfp410_fini(&client->dev); 400 - 401 - return 0; 402 400 } 403 401 404 402 static const struct i2c_device_id tfp410_i2c_ids[] = {
+1 -3
drivers/gpu/drm/i2c/ch7006_drv.c
··· 417 417 return -ENODEV; 418 418 } 419 419 420 - static int ch7006_remove(struct i2c_client *client) 420 + static void ch7006_remove(struct i2c_client *client) 421 421 { 422 422 ch7006_dbg(client, "\n"); 423 - 424 - return 0; 425 423 } 426 424 427 425 static int ch7006_resume(struct device *dev)
+1 -3
drivers/gpu/drm/i2c/tda9950.c
··· 478 478 return 0; 479 479 } 480 480 481 - static int tda9950_remove(struct i2c_client *client) 481 + static void tda9950_remove(struct i2c_client *client) 482 482 { 483 483 struct tda9950_priv *priv = i2c_get_clientdata(client); 484 484 485 485 cec_notifier_cec_adap_unregister(priv->notify, priv->adap); 486 486 cec_unregister_adapter(priv->adap); 487 - 488 - return 0; 489 487 } 490 488 491 489 static struct i2c_device_id tda9950_ids[] = {
+1 -2
drivers/gpu/drm/i2c/tda998x_drv.c
··· 2076 2076 return ret; 2077 2077 } 2078 2078 2079 - static int tda998x_remove(struct i2c_client *client) 2079 + static void tda998x_remove(struct i2c_client *client) 2080 2080 { 2081 2081 component_del(&client->dev, &tda998x_ops); 2082 2082 tda998x_destroy(&client->dev); 2083 - return 0; 2084 2083 } 2085 2084 2086 2085 #ifdef CONFIG_OF
+1 -3
drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c
··· 288 288 return 0; 289 289 } 290 290 291 - static int lcd_olinuxino_remove(struct i2c_client *client) 291 + static void lcd_olinuxino_remove(struct i2c_client *client) 292 292 { 293 293 struct lcd_olinuxino *panel = i2c_get_clientdata(client); 294 294 ··· 296 296 297 297 drm_panel_disable(&panel->panel); 298 298 drm_panel_unprepare(&panel->panel); 299 - 300 - return 0; 301 299 } 302 300 303 301 static const struct of_device_id lcd_olinuxino_of_ids[] = {
+1 -3
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
··· 446 446 return -ENODEV; 447 447 } 448 448 449 - static int rpi_touchscreen_remove(struct i2c_client *i2c) 449 + static void rpi_touchscreen_remove(struct i2c_client *i2c) 450 450 { 451 451 struct rpi_touchscreen *ts = i2c_get_clientdata(i2c); 452 452 ··· 455 455 drm_panel_remove(&ts->base); 456 456 457 457 mipi_dsi_device_unregister(ts->dsi); 458 - 459 - return 0; 460 458 } 461 459 462 460 static int rpi_touchscreen_dsi_probe(struct mipi_dsi_device *dsi)
+1 -3
drivers/gpu/drm/solomon/ssd130x-i2c.c
··· 39 39 return 0; 40 40 } 41 41 42 - static int ssd130x_i2c_remove(struct i2c_client *client) 42 + static void ssd130x_i2c_remove(struct i2c_client *client) 43 43 { 44 44 struct ssd130x_device *ssd130x = i2c_get_clientdata(client); 45 45 46 46 ssd130x_remove(ssd130x); 47 - 48 - return 0; 49 47 } 50 48 51 49 static void ssd130x_i2c_shutdown(struct i2c_client *client)
+1 -3
drivers/hid/i2c-hid/i2c-hid-core.c
··· 1064 1064 } 1065 1065 EXPORT_SYMBOL_GPL(i2c_hid_core_probe); 1066 1066 1067 - int i2c_hid_core_remove(struct i2c_client *client) 1067 + void i2c_hid_core_remove(struct i2c_client *client) 1068 1068 { 1069 1069 struct i2c_hid *ihid = i2c_get_clientdata(client); 1070 1070 struct hid_device *hid; ··· 1078 1078 i2c_hid_free_buffers(ihid); 1079 1079 1080 1080 i2c_hid_core_power_down(ihid); 1081 - 1082 - return 0; 1083 1081 } 1084 1082 EXPORT_SYMBOL_GPL(i2c_hid_core_remove); 1085 1083
+1 -1
drivers/hid/i2c-hid/i2c-hid.h
··· 33 33 34 34 int i2c_hid_core_probe(struct i2c_client *client, struct i2chid_ops *ops, 35 35 u16 hid_descriptor_address, u32 quirks); 36 - int i2c_hid_core_remove(struct i2c_client *client); 36 + void i2c_hid_core_remove(struct i2c_client *client); 37 37 38 38 void i2c_hid_core_shutdown(struct i2c_client *client); 39 39
+1 -3
drivers/hwmon/adc128d818.c
··· 495 495 return err; 496 496 } 497 497 498 - static int adc128_remove(struct i2c_client *client) 498 + static void adc128_remove(struct i2c_client *client) 499 499 { 500 500 struct adc128_data *data = i2c_get_clientdata(client); 501 501 502 502 if (data->regulator) 503 503 regulator_disable(data->regulator); 504 - 505 - return 0; 506 504 } 507 505 508 506 static const struct i2c_device_id adc128_id[] = {
+1 -2
drivers/hwmon/adt7470.c
··· 1296 1296 return 0; 1297 1297 } 1298 1298 1299 - static int adt7470_remove(struct i2c_client *client) 1299 + static void adt7470_remove(struct i2c_client *client) 1300 1300 { 1301 1301 struct adt7470_data *data = i2c_get_clientdata(client); 1302 1302 1303 1303 kthread_stop(data->auto_update); 1304 - return 0; 1305 1304 } 1306 1305 1307 1306 static const struct i2c_device_id adt7470_id[] = {
+2 -4
drivers/hwmon/asb100.c
··· 208 208 static int asb100_probe(struct i2c_client *client); 209 209 static int asb100_detect(struct i2c_client *client, 210 210 struct i2c_board_info *info); 211 - static int asb100_remove(struct i2c_client *client); 211 + static void asb100_remove(struct i2c_client *client); 212 212 static struct asb100_data *asb100_update_device(struct device *dev); 213 213 static void asb100_init_client(struct i2c_client *client); 214 214 ··· 822 822 return err; 823 823 } 824 824 825 - static int asb100_remove(struct i2c_client *client) 825 + static void asb100_remove(struct i2c_client *client) 826 826 { 827 827 struct asb100_data *data = i2c_get_clientdata(client); 828 828 ··· 831 831 832 832 i2c_unregister_device(data->lm75[1]); 833 833 i2c_unregister_device(data->lm75[0]); 834 - 835 - return 0; 836 834 } 837 835 838 836 /*
+1 -3
drivers/hwmon/asc7621.c
··· 1165 1165 return -ENODEV; 1166 1166 } 1167 1167 1168 - static int asc7621_remove(struct i2c_client *client) 1168 + static void asc7621_remove(struct i2c_client *client) 1169 1169 { 1170 1170 struct asc7621_data *data = i2c_get_clientdata(client); 1171 1171 int i; ··· 1176 1176 device_remove_file(&client->dev, 1177 1177 &(asc7621_params[i].sda.dev_attr)); 1178 1178 } 1179 - 1180 - return 0; 1181 1179 } 1182 1180 1183 1181 static const struct i2c_device_id asc7621_id[] = {
+1 -3
drivers/hwmon/dme1737.c
··· 2508 2508 return err; 2509 2509 } 2510 2510 2511 - static int dme1737_i2c_remove(struct i2c_client *client) 2511 + static void dme1737_i2c_remove(struct i2c_client *client) 2512 2512 { 2513 2513 struct dme1737_data *data = i2c_get_clientdata(client); 2514 2514 2515 2515 hwmon_device_unregister(data->hwmon_dev); 2516 2516 dme1737_remove_files(&client->dev); 2517 - 2518 - return 0; 2519 2517 } 2520 2518 2521 2519 static const struct i2c_device_id dme1737_id[] = {
+2 -3
drivers/hwmon/f75375s.c
··· 114 114 static int f75375_detect(struct i2c_client *client, 115 115 struct i2c_board_info *info); 116 116 static int f75375_probe(struct i2c_client *client); 117 - static int f75375_remove(struct i2c_client *client); 117 + static void f75375_remove(struct i2c_client *client); 118 118 119 119 static const struct i2c_device_id f75375_id[] = { 120 120 { "f75373", f75373 }, ··· 864 864 return err; 865 865 } 866 866 867 - static int f75375_remove(struct i2c_client *client) 867 + static void f75375_remove(struct i2c_client *client) 868 868 { 869 869 struct f75375_data *data = i2c_get_clientdata(client); 870 870 hwmon_device_unregister(data->hwmon_dev); 871 871 sysfs_remove_group(&client->dev.kobj, &f75375_group); 872 - return 0; 873 872 } 874 873 875 874 /* Return 0 if detection is successful, -ENODEV otherwise */
+2 -4
drivers/hwmon/fschmd.c
··· 217 217 static int fschmd_probe(struct i2c_client *client); 218 218 static int fschmd_detect(struct i2c_client *client, 219 219 struct i2c_board_info *info); 220 - static int fschmd_remove(struct i2c_client *client); 220 + static void fschmd_remove(struct i2c_client *client); 221 221 static struct fschmd_data *fschmd_update_device(struct device *dev); 222 222 223 223 /* ··· 1248 1248 return err; 1249 1249 } 1250 1250 1251 - static int fschmd_remove(struct i2c_client *client) 1251 + static void fschmd_remove(struct i2c_client *client) 1252 1252 { 1253 1253 struct fschmd_data *data = i2c_get_clientdata(client); 1254 1254 int i; ··· 1291 1291 mutex_lock(&watchdog_data_mutex); 1292 1292 kref_put(&data->kref, fschmd_release_resources); 1293 1293 mutex_unlock(&watchdog_data_mutex); 1294 - 1295 - return 0; 1296 1294 } 1297 1295 1298 1296 static struct fschmd_data *fschmd_update_device(struct device *dev)
+1 -2
drivers/hwmon/ftsteutates.c
··· 744 744 return 0; 745 745 } 746 746 747 - static int fts_remove(struct i2c_client *client) 747 + static void fts_remove(struct i2c_client *client) 748 748 { 749 749 struct fts_data *data = dev_get_drvdata(&client->dev); 750 750 751 751 watchdog_unregister_device(&data->wdd); 752 - return 0; 753 752 } 754 753 755 754 static int fts_probe(struct i2c_client *client)
+1 -3
drivers/hwmon/ina209.c
··· 568 568 return ret; 569 569 } 570 570 571 - static int ina209_remove(struct i2c_client *client) 571 + static void ina209_remove(struct i2c_client *client) 572 572 { 573 573 struct ina209_data *data = i2c_get_clientdata(client); 574 574 575 575 ina209_restore_conf(client, data); 576 - 577 - return 0; 578 576 } 579 577 580 578 static const struct i2c_device_id ina209_id[] = {
+1 -3
drivers/hwmon/ina3221.c
··· 913 913 return ret; 914 914 } 915 915 916 - static int ina3221_remove(struct i2c_client *client) 916 + static void ina3221_remove(struct i2c_client *client) 917 917 { 918 918 struct ina3221_data *ina = dev_get_drvdata(&client->dev); 919 919 int i; ··· 926 926 pm_runtime_put_noidle(ina->pm_dev); 927 927 928 928 mutex_destroy(&ina->lock); 929 - 930 - return 0; 931 929 } 932 930 933 931 static int __maybe_unused ina3221_suspend(struct device *dev)
+1 -2
drivers/hwmon/jc42.c
··· 524 524 return PTR_ERR_OR_ZERO(hwmon_dev); 525 525 } 526 526 527 - static int jc42_remove(struct i2c_client *client) 527 + static void jc42_remove(struct i2c_client *client) 528 528 { 529 529 struct jc42_data *data = i2c_get_clientdata(client); 530 530 ··· 537 537 | (data->config & JC42_CFG_HYST_MASK); 538 538 i2c_smbus_write_word_swapped(client, JC42_REG_CONFIG, config); 539 539 } 540 - return 0; 541 540 } 542 541 543 542 #ifdef CONFIG_PM
+1 -3
drivers/hwmon/occ/p8_i2c.c
··· 227 227 return occ_setup(occ); 228 228 } 229 229 230 - static int p8_i2c_occ_remove(struct i2c_client *client) 230 + static void p8_i2c_occ_remove(struct i2c_client *client) 231 231 { 232 232 struct occ *occ = dev_get_drvdata(&client->dev); 233 233 234 234 occ_shutdown(occ); 235 - 236 - return 0; 237 235 } 238 236 239 237 static const struct of_device_id p8_i2c_occ_of_match[] = {
+1 -2
drivers/hwmon/pcf8591.c
··· 228 228 return err; 229 229 } 230 230 231 - static int pcf8591_remove(struct i2c_client *client) 231 + static void pcf8591_remove(struct i2c_client *client) 232 232 { 233 233 struct pcf8591_data *data = i2c_get_clientdata(client); 234 234 235 235 hwmon_device_unregister(data->hwmon_dev); 236 236 sysfs_remove_group(&client->dev.kobj, &pcf8591_attr_group_opt); 237 237 sysfs_remove_group(&client->dev.kobj, &pcf8591_attr_group); 238 - return 0; 239 238 } 240 239 241 240 /* Called when we have found a new PCF8591. */
+1 -2
drivers/hwmon/smm665.c
··· 671 671 return ret; 672 672 } 673 673 674 - static int smm665_remove(struct i2c_client *client) 674 + static void smm665_remove(struct i2c_client *client) 675 675 { 676 676 struct smm665_data *data = i2c_get_clientdata(client); 677 677 678 678 i2c_unregister_device(data->cmdreg); 679 - return 0; 680 679 } 681 680 682 681 static const struct i2c_device_id smm665_id[] = {
+1 -3
drivers/hwmon/tps23861.c
··· 588 588 return 0; 589 589 } 590 590 591 - static int tps23861_remove(struct i2c_client *client) 591 + static void tps23861_remove(struct i2c_client *client) 592 592 { 593 593 struct tps23861_data *data = i2c_get_clientdata(client); 594 594 595 595 debugfs_remove_recursive(data->debugfs_dir); 596 - 597 - return 0; 598 596 } 599 597 600 598 static const struct of_device_id __maybe_unused tps23861_of_match[] = {
+1 -3
drivers/hwmon/w83781d.c
··· 1239 1239 return err; 1240 1240 } 1241 1241 1242 - static int 1242 + static void 1243 1243 w83781d_remove(struct i2c_client *client) 1244 1244 { 1245 1245 struct w83781d_data *data = i2c_get_clientdata(client); ··· 1250 1250 1251 1251 i2c_unregister_device(data->lm75[0]); 1252 1252 i2c_unregister_device(data->lm75[1]); 1253 - 1254 - return 0; 1255 1253 } 1256 1254 1257 1255 static int
+2 -4
drivers/hwmon/w83791d.c
··· 315 315 static int w83791d_probe(struct i2c_client *client); 316 316 static int w83791d_detect(struct i2c_client *client, 317 317 struct i2c_board_info *info); 318 - static int w83791d_remove(struct i2c_client *client); 318 + static void w83791d_remove(struct i2c_client *client); 319 319 320 320 static int w83791d_read(struct i2c_client *client, u8 reg); 321 321 static int w83791d_write(struct i2c_client *client, u8 reg, u8 value); ··· 1405 1405 return err; 1406 1406 } 1407 1407 1408 - static int w83791d_remove(struct i2c_client *client) 1408 + static void w83791d_remove(struct i2c_client *client) 1409 1409 { 1410 1410 struct w83791d_data *data = i2c_get_clientdata(client); 1411 1411 1412 1412 hwmon_device_unregister(data->hwmon_dev); 1413 1413 sysfs_remove_group(&client->dev.kobj, &w83791d_group); 1414 - 1415 - return 0; 1416 1414 } 1417 1415 1418 1416 static void w83791d_init_client(struct i2c_client *client)
+2 -4
drivers/hwmon/w83792d.c
··· 286 286 static int w83792d_probe(struct i2c_client *client); 287 287 static int w83792d_detect(struct i2c_client *client, 288 288 struct i2c_board_info *info); 289 - static int w83792d_remove(struct i2c_client *client); 289 + static void w83792d_remove(struct i2c_client *client); 290 290 static struct w83792d_data *w83792d_update_device(struct device *dev); 291 291 292 292 #ifdef DEBUG ··· 1429 1429 return err; 1430 1430 } 1431 1431 1432 - static int 1432 + static void 1433 1433 w83792d_remove(struct i2c_client *client) 1434 1434 { 1435 1435 struct w83792d_data *data = i2c_get_clientdata(client); ··· 1440 1440 for (i = 0; i < ARRAY_SIZE(w83792d_group_fan); i++) 1441 1441 sysfs_remove_group(&client->dev.kobj, 1442 1442 &w83792d_group_fan[i]); 1443 - 1444 - return 0; 1445 1443 } 1446 1444 1447 1445 static void
+2 -4
drivers/hwmon/w83793.c
··· 285 285 static int w83793_probe(struct i2c_client *client); 286 286 static int w83793_detect(struct i2c_client *client, 287 287 struct i2c_board_info *info); 288 - static int w83793_remove(struct i2c_client *client); 288 + static void w83793_remove(struct i2c_client *client); 289 289 static void w83793_init_client(struct i2c_client *client); 290 290 static void w83793_update_nonvolatile(struct device *dev); 291 291 static struct w83793_data *w83793_update_device(struct device *dev); ··· 1495 1495 * Init / remove routines 1496 1496 */ 1497 1497 1498 - static int w83793_remove(struct i2c_client *client) 1498 + static void w83793_remove(struct i2c_client *client) 1499 1499 { 1500 1500 struct w83793_data *data = i2c_get_clientdata(client); 1501 1501 struct device *dev = &client->dev; ··· 1554 1554 mutex_lock(&watchdog_data_mutex); 1555 1555 kref_put(&data->kref, w83793_release_resources); 1556 1556 mutex_unlock(&watchdog_data_mutex); 1557 - 1558 - return 0; 1559 1557 } 1560 1558 1561 1559 static int
+1 -3
drivers/hwmon/w83795.c
··· 2235 2235 return err; 2236 2236 } 2237 2237 2238 - static int w83795_remove(struct i2c_client *client) 2238 + static void w83795_remove(struct i2c_client *client) 2239 2239 { 2240 2240 struct w83795_data *data = i2c_get_clientdata(client); 2241 2241 2242 2242 hwmon_device_unregister(data->hwmon_dev); 2243 2243 w83795_handle_files(&client->dev, device_remove_file_wrapper); 2244 - 2245 - return 0; 2246 2244 } 2247 2245 2248 2246
+2 -4
drivers/hwmon/w83l785ts.c
··· 65 65 static int w83l785ts_probe(struct i2c_client *client); 66 66 static int w83l785ts_detect(struct i2c_client *client, 67 67 struct i2c_board_info *info); 68 - static int w83l785ts_remove(struct i2c_client *client); 68 + static void w83l785ts_remove(struct i2c_client *client); 69 69 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval); 70 70 static struct w83l785ts_data *w83l785ts_update_device(struct device *dev); 71 71 ··· 203 203 return err; 204 204 } 205 205 206 - static int w83l785ts_remove(struct i2c_client *client) 206 + static void w83l785ts_remove(struct i2c_client *client) 207 207 { 208 208 struct w83l785ts_data *data = i2c_get_clientdata(client); 209 209 ··· 212 212 &sensor_dev_attr_temp1_input.dev_attr); 213 213 device_remove_file(&client->dev, 214 214 &sensor_dev_attr_temp1_max.dev_attr); 215 - 216 - return 0; 217 215 } 218 216 219 217 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval)
+1 -5
drivers/i2c/i2c-core-base.c
··· 599 599 600 600 driver = to_i2c_driver(dev->driver); 601 601 if (driver->remove) { 602 - int status; 603 - 604 602 dev_dbg(dev, "remove\n"); 605 603 606 - status = driver->remove(client); 607 - if (status) 608 - dev_warn(dev, "remove failed (%pe), will be ignored\n", ERR_PTR(status)); 604 + driver->remove(client); 609 605 } 610 606 611 607 devres_release_group(&client->dev, client->devres_group_id);
+1 -3
drivers/i2c/i2c-slave-eeprom.c
··· 181 181 return 0; 182 182 }; 183 183 184 - static int i2c_slave_eeprom_remove(struct i2c_client *client) 184 + static void i2c_slave_eeprom_remove(struct i2c_client *client) 185 185 { 186 186 struct eeprom_data *eeprom = i2c_get_clientdata(client); 187 187 188 188 i2c_slave_unregister(client); 189 189 sysfs_remove_bin_file(&client->dev.kobj, &eeprom->bin); 190 - 191 - return 0; 192 190 } 193 191 194 192 static const struct i2c_device_id i2c_slave_eeprom_id[] = {
+1 -2
drivers/i2c/i2c-slave-testunit.c
··· 153 153 return i2c_slave_register(client, i2c_slave_testunit_slave_cb); 154 154 }; 155 155 156 - static int i2c_slave_testunit_remove(struct i2c_client *client) 156 + static void i2c_slave_testunit_remove(struct i2c_client *client) 157 157 { 158 158 struct testunit_data *tu = i2c_get_clientdata(client); 159 159 160 160 cancel_delayed_work_sync(&tu->worker); 161 161 i2c_slave_unregister(client); 162 - return 0; 163 162 } 164 163 165 164 static const struct i2c_device_id i2c_slave_testunit_id[] = {
+1 -2
drivers/i2c/i2c-smbus.c
··· 153 153 } 154 154 155 155 /* IRQ and memory resources are managed so they are freed automatically */ 156 - static int smbalert_remove(struct i2c_client *ara) 156 + static void smbalert_remove(struct i2c_client *ara) 157 157 { 158 158 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara); 159 159 160 160 cancel_work_sync(&alert->alert); 161 - return 0; 162 161 } 163 162 164 163 static const struct i2c_device_id smbalert_ids[] = {
+1 -3
drivers/i2c/muxes/i2c-mux-ltc4306.c
··· 294 294 return 0; 295 295 } 296 296 297 - static int ltc4306_remove(struct i2c_client *client) 297 + static void ltc4306_remove(struct i2c_client *client) 298 298 { 299 299 struct i2c_mux_core *muxc = i2c_get_clientdata(client); 300 300 301 301 i2c_mux_del_adapters(muxc); 302 - 303 - return 0; 304 302 } 305 303 306 304 static struct i2c_driver ltc4306_driver = {
+1 -2
drivers/i2c/muxes/i2c-mux-pca9541.c
··· 325 325 return 0; 326 326 } 327 327 328 - static int pca9541_remove(struct i2c_client *client) 328 + static void pca9541_remove(struct i2c_client *client) 329 329 { 330 330 struct i2c_mux_core *muxc = i2c_get_clientdata(client); 331 331 332 332 i2c_mux_del_adapters(muxc); 333 - return 0; 334 333 } 335 334 336 335 static struct i2c_driver pca9541_driver = {
+1 -2
drivers/i2c/muxes/i2c-mux-pca954x.c
··· 521 521 return ret; 522 522 } 523 523 524 - static int pca954x_remove(struct i2c_client *client) 524 + static void pca954x_remove(struct i2c_client *client) 525 525 { 526 526 struct i2c_mux_core *muxc = i2c_get_clientdata(client); 527 527 528 528 device_remove_file(&client->dev, &dev_attr_idle_state); 529 529 530 530 pca954x_cleanup(muxc); 531 - return 0; 532 531 } 533 532 534 533 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/iio/accel/bma180.c
··· 1045 1045 return ret; 1046 1046 } 1047 1047 1048 - static int bma180_remove(struct i2c_client *client) 1048 + static void bma180_remove(struct i2c_client *client) 1049 1049 { 1050 1050 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1051 1051 struct bma180_data *data = iio_priv(indio_dev); ··· 1062 1062 mutex_unlock(&data->mutex); 1063 1063 regulator_disable(data->vddio_supply); 1064 1064 regulator_disable(data->vdd_supply); 1065 - 1066 - return 0; 1067 1065 } 1068 1066 1069 1067 static int bma180_suspend(struct device *dev)
+1 -3
drivers/iio/accel/bmc150-accel-i2c.c
··· 209 209 return 0; 210 210 } 211 211 212 - static int bmc150_accel_remove(struct i2c_client *client) 212 + static void bmc150_accel_remove(struct i2c_client *client) 213 213 { 214 214 bmc150_acpi_dual_accel_remove(client); 215 215 216 216 bmc150_accel_core_remove(&client->dev); 217 - 218 - return 0; 219 217 } 220 218 221 219 static const struct acpi_device_id bmc150_accel_acpi_match[] = {
+1 -3
drivers/iio/accel/kxcjk-1013.c
··· 1611 1611 return ret; 1612 1612 } 1613 1613 1614 - static int kxcjk1013_remove(struct i2c_client *client) 1614 + static void kxcjk1013_remove(struct i2c_client *client) 1615 1615 { 1616 1616 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1617 1617 struct kxcjk1013_data *data = iio_priv(indio_dev); ··· 1630 1630 mutex_lock(&data->mutex); 1631 1631 kxcjk1013_set_mode(data, STANDBY); 1632 1632 mutex_unlock(&data->mutex); 1633 - 1634 - return 0; 1635 1633 } 1636 1634 1637 1635 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/iio/accel/kxsd9-i2c.c
··· 32 32 i2c->name); 33 33 } 34 34 35 - static int kxsd9_i2c_remove(struct i2c_client *client) 35 + static void kxsd9_i2c_remove(struct i2c_client *client) 36 36 { 37 37 kxsd9_common_remove(&client->dev); 38 - 39 - return 0; 40 38 } 41 39 42 40 static const struct of_device_id kxsd9_of_match[] = {
+1 -3
drivers/iio/accel/mc3230.c
··· 151 151 return ret; 152 152 } 153 153 154 - static int mc3230_remove(struct i2c_client *client) 154 + static void mc3230_remove(struct i2c_client *client) 155 155 { 156 156 struct iio_dev *indio_dev = i2c_get_clientdata(client); 157 157 158 158 iio_device_unregister(indio_dev); 159 159 160 160 mc3230_set_opcon(iio_priv(indio_dev), MC3230_MODE_OPCON_STANDBY); 161 - 162 - return 0; 163 161 } 164 162 165 163 static int mc3230_suspend(struct device *dev)
+1 -3
drivers/iio/accel/mma7455_i2c.c
··· 26 26 return mma7455_core_probe(&i2c->dev, regmap, name); 27 27 } 28 28 29 - static int mma7455_i2c_remove(struct i2c_client *i2c) 29 + static void mma7455_i2c_remove(struct i2c_client *i2c) 30 30 { 31 31 mma7455_core_remove(&i2c->dev); 32 - 33 - return 0; 34 32 } 35 33 36 34 static const struct i2c_device_id mma7455_i2c_ids[] = {
+1 -3
drivers/iio/accel/mma7660.c
··· 207 207 return ret; 208 208 } 209 209 210 - static int mma7660_remove(struct i2c_client *client) 210 + static void mma7660_remove(struct i2c_client *client) 211 211 { 212 212 struct iio_dev *indio_dev = i2c_get_clientdata(client); 213 213 int ret; ··· 218 218 if (ret) 219 219 dev_warn(&client->dev, "Failed to put device in stand-by mode (%pe), ignoring\n", 220 220 ERR_PTR(ret)); 221 - 222 - return 0; 223 221 } 224 222 225 223 static int mma7660_suspend(struct device *dev)
+1 -3
drivers/iio/accel/mma8452.c
··· 1735 1735 return ret; 1736 1736 } 1737 1737 1738 - static int mma8452_remove(struct i2c_client *client) 1738 + static void mma8452_remove(struct i2c_client *client) 1739 1739 { 1740 1740 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1741 1741 struct mma8452_data *data = iio_priv(indio_dev); ··· 1751 1751 1752 1752 regulator_disable(data->vddio_reg); 1753 1753 regulator_disable(data->vdd_reg); 1754 - 1755 - return 0; 1756 1754 } 1757 1755 1758 1756 #ifdef CONFIG_PM
+1 -3
drivers/iio/accel/mma9551.c
··· 509 509 return ret; 510 510 } 511 511 512 - static int mma9551_remove(struct i2c_client *client) 512 + static void mma9551_remove(struct i2c_client *client) 513 513 { 514 514 struct iio_dev *indio_dev = i2c_get_clientdata(client); 515 515 struct mma9551_data *data = iio_priv(indio_dev); ··· 522 522 mutex_lock(&data->mutex); 523 523 mma9551_set_device_state(data->client, false); 524 524 mutex_unlock(&data->mutex); 525 - 526 - return 0; 527 525 } 528 526 529 527 static int mma9551_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/accel/mma9553.c
··· 1148 1148 return ret; 1149 1149 } 1150 1150 1151 - static int mma9553_remove(struct i2c_client *client) 1151 + static void mma9553_remove(struct i2c_client *client) 1152 1152 { 1153 1153 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1154 1154 struct mma9553_data *data = iio_priv(indio_dev); ··· 1161 1161 mutex_lock(&data->mutex); 1162 1162 mma9551_set_device_state(data->client, false); 1163 1163 mutex_unlock(&data->mutex); 1164 - 1165 - return 0; 1166 1164 } 1167 1165 1168 1166 static int mma9553_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/accel/stk8312.c
··· 597 597 return ret; 598 598 } 599 599 600 - static int stk8312_remove(struct i2c_client *client) 600 + static void stk8312_remove(struct i2c_client *client) 601 601 { 602 602 struct iio_dev *indio_dev = i2c_get_clientdata(client); 603 603 struct stk8312_data *data = iio_priv(indio_dev); ··· 609 609 iio_trigger_unregister(data->dready_trig); 610 610 611 611 stk8312_set_mode(data, STK8312_MODE_STANDBY); 612 - 613 - return 0; 614 612 } 615 613 616 614 static int stk8312_suspend(struct device *dev)
+1 -3
drivers/iio/accel/stk8ba50.c
··· 490 490 return ret; 491 491 } 492 492 493 - static int stk8ba50_remove(struct i2c_client *client) 493 + static void stk8ba50_remove(struct i2c_client *client) 494 494 { 495 495 struct iio_dev *indio_dev = i2c_get_clientdata(client); 496 496 struct stk8ba50_data *data = iio_priv(indio_dev); ··· 502 502 iio_trigger_unregister(data->dready_trig); 503 503 504 504 stk8ba50_set_power(data, STK8BA50_MODE_SUSPEND); 505 - 506 - return 0; 507 505 } 508 506 509 507 static int stk8ba50_suspend(struct device *dev)
+1 -3
drivers/iio/adc/ad799x.c
··· 880 880 return ret; 881 881 } 882 882 883 - static int ad799x_remove(struct i2c_client *client) 883 + static void ad799x_remove(struct i2c_client *client) 884 884 { 885 885 struct iio_dev *indio_dev = i2c_get_clientdata(client); 886 886 struct ad799x_state *st = iio_priv(indio_dev); ··· 892 892 regulator_disable(st->vref); 893 893 regulator_disable(st->reg); 894 894 kfree(st->rx_buf); 895 - 896 - return 0; 897 895 } 898 896 899 897 static int ad799x_suspend(struct device *dev)
+1 -3
drivers/iio/adc/ina2xx-adc.c
··· 1034 1034 return iio_device_register(indio_dev); 1035 1035 } 1036 1036 1037 - static int ina2xx_remove(struct i2c_client *client) 1037 + static void ina2xx_remove(struct i2c_client *client) 1038 1038 { 1039 1039 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1040 1040 struct ina2xx_chip_info *chip = iio_priv(indio_dev); ··· 1048 1048 if (ret) 1049 1049 dev_warn(&client->dev, "Failed to power down device (%pe)\n", 1050 1050 ERR_PTR(ret)); 1051 - 1052 - return 0; 1053 1051 } 1054 1052 1055 1053 static const struct i2c_device_id ina2xx_id[] = {
+1 -3
drivers/iio/adc/ltc2497.c
··· 74 74 return ltc2497core_probe(dev, indio_dev); 75 75 } 76 76 77 - static int ltc2497_remove(struct i2c_client *client) 77 + static void ltc2497_remove(struct i2c_client *client) 78 78 { 79 79 struct iio_dev *indio_dev = i2c_get_clientdata(client); 80 80 81 81 ltc2497core_remove(indio_dev); 82 - 83 - return 0; 84 82 } 85 83 86 84 static const struct i2c_device_id ltc2497_id[] = {
+1 -3
drivers/iio/adc/ti-ads1015.c
··· 1094 1094 return 0; 1095 1095 } 1096 1096 1097 - static int ads1015_remove(struct i2c_client *client) 1097 + static void ads1015_remove(struct i2c_client *client) 1098 1098 { 1099 1099 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1100 1100 struct ads1015_data *data = iio_priv(indio_dev); ··· 1110 1110 if (ret) 1111 1111 dev_warn(&client->dev, "Failed to power down (%pe)\n", 1112 1112 ERR_PTR(ret)); 1113 - 1114 - return 0; 1115 1113 } 1116 1114 1117 1115 #ifdef CONFIG_PM
+1 -3
drivers/iio/chemical/atlas-sensor.c
··· 722 722 return ret; 723 723 } 724 724 725 - static int atlas_remove(struct i2c_client *client) 725 + static void atlas_remove(struct i2c_client *client) 726 726 { 727 727 struct iio_dev *indio_dev = i2c_get_clientdata(client); 728 728 struct atlas_data *data = iio_priv(indio_dev); ··· 739 739 if (ret) 740 740 dev_err(&client->dev, "Failed to power down device (%pe)\n", 741 741 ERR_PTR(ret)); 742 - 743 - return 0; 744 742 } 745 743 746 744 static int atlas_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/chemical/ccs811.c
··· 532 532 return ret; 533 533 } 534 534 535 - static int ccs811_remove(struct i2c_client *client) 535 + static void ccs811_remove(struct i2c_client *client) 536 536 { 537 537 struct iio_dev *indio_dev = i2c_get_clientdata(client); 538 538 struct ccs811_data *data = iio_priv(indio_dev); ··· 548 548 if (ret) 549 549 dev_warn(&client->dev, "Failed to power down device (%pe)\n", 550 550 ERR_PTR(ret)); 551 - 552 - return 0; 553 551 } 554 552 555 553 static const struct i2c_device_id ccs811_id[] = {
+1 -3
drivers/iio/chemical/sgp30.c
··· 552 552 return 0; 553 553 } 554 554 555 - static int sgp_remove(struct i2c_client *client) 555 + static void sgp_remove(struct i2c_client *client) 556 556 { 557 557 struct iio_dev *indio_dev = i2c_get_clientdata(client); 558 558 struct sgp_data *data = iio_priv(indio_dev); 559 559 560 560 if (data->iaq_thread) 561 561 kthread_stop(data->iaq_thread); 562 - 563 - return 0; 564 562 } 565 563 566 564 static const struct i2c_device_id sgp_id[] = {
+1 -3
drivers/iio/dac/ad5380.c
··· 559 559 return ad5380_probe(&i2c->dev, regmap, id->driver_data, id->name); 560 560 } 561 561 562 - static int ad5380_i2c_remove(struct i2c_client *i2c) 562 + static void ad5380_i2c_remove(struct i2c_client *i2c) 563 563 { 564 564 ad5380_remove(&i2c->dev); 565 - 566 - return 0; 567 565 } 568 566 569 567 static const struct i2c_device_id ad5380_i2c_ids[] = {
+1 -3
drivers/iio/dac/ad5446.c
··· 575 575 &ad5446_i2c_chip_info[id->driver_data]); 576 576 } 577 577 578 - static int ad5446_i2c_remove(struct i2c_client *i2c) 578 + static void ad5446_i2c_remove(struct i2c_client *i2c) 579 579 { 580 580 ad5446_remove(&i2c->dev); 581 - 582 - return 0; 583 581 } 584 582 585 583 static const struct i2c_device_id ad5446_i2c_ids[] = {
+1 -3
drivers/iio/dac/ad5593r.c
··· 97 97 return ad5592r_probe(&i2c->dev, id->name, &ad5593r_rw_ops); 98 98 } 99 99 100 - static int ad5593r_i2c_remove(struct i2c_client *i2c) 100 + static void ad5593r_i2c_remove(struct i2c_client *i2c) 101 101 { 102 102 ad5592r_remove(&i2c->dev); 103 - 104 - return 0; 105 103 } 106 104 107 105 static const struct i2c_device_id ad5593r_i2c_ids[] = {
+1 -3
drivers/iio/dac/ad5696-i2c.c
··· 65 65 ad5686_i2c_write, ad5686_i2c_read); 66 66 } 67 67 68 - static int ad5686_i2c_remove(struct i2c_client *i2c) 68 + static void ad5686_i2c_remove(struct i2c_client *i2c) 69 69 { 70 70 ad5686_remove(&i2c->dev); 71 - 72 - return 0; 73 71 } 74 72 75 73 static const struct i2c_device_id ad5686_i2c_id[] = {
+1 -3
drivers/iio/dac/ds4424.c
··· 281 281 return ret; 282 282 } 283 283 284 - static int ds4424_remove(struct i2c_client *client) 284 + static void ds4424_remove(struct i2c_client *client) 285 285 { 286 286 struct iio_dev *indio_dev = i2c_get_clientdata(client); 287 287 struct ds4424_data *data = iio_priv(indio_dev); 288 288 289 289 iio_device_unregister(indio_dev); 290 290 regulator_disable(data->vcc_reg); 291 - 292 - return 0; 293 291 } 294 292 295 293 static const struct i2c_device_id ds4424_id[] = {
+1 -3
drivers/iio/dac/m62332.c
··· 218 218 return ret; 219 219 } 220 220 221 - static int m62332_remove(struct i2c_client *client) 221 + static void m62332_remove(struct i2c_client *client) 222 222 { 223 223 struct iio_dev *indio_dev = i2c_get_clientdata(client); 224 224 ··· 226 226 iio_map_array_unregister(indio_dev); 227 227 m62332_set_value(indio_dev, 0, 0); 228 228 m62332_set_value(indio_dev, 0, 1); 229 - 230 - return 0; 231 229 } 232 230 233 231 static const struct i2c_device_id m62332_id[] = {
+1 -3
drivers/iio/dac/mcp4725.c
··· 486 486 return err; 487 487 } 488 488 489 - static int mcp4725_remove(struct i2c_client *client) 489 + static void mcp4725_remove(struct i2c_client *client) 490 490 { 491 491 struct iio_dev *indio_dev = i2c_get_clientdata(client); 492 492 struct mcp4725_data *data = iio_priv(indio_dev); ··· 496 496 if (data->vref_reg) 497 497 regulator_disable(data->vref_reg); 498 498 regulator_disable(data->vdd_reg); 499 - 500 - return 0; 501 499 } 502 500 503 501 static const struct i2c_device_id mcp4725_id[] = {
+1 -3
drivers/iio/dac/ti-dac5571.c
··· 382 382 return ret; 383 383 } 384 384 385 - static int dac5571_remove(struct i2c_client *i2c) 385 + static void dac5571_remove(struct i2c_client *i2c) 386 386 { 387 387 struct iio_dev *indio_dev = i2c_get_clientdata(i2c); 388 388 struct dac5571_data *data = iio_priv(indio_dev); 389 389 390 390 iio_device_unregister(indio_dev); 391 391 regulator_disable(data->vref); 392 - 393 - return 0; 394 392 } 395 393 396 394 static const struct of_device_id dac5571_of_id[] = {
+1 -3
drivers/iio/gyro/bmg160_i2c.c
··· 32 32 return bmg160_core_probe(&client->dev, regmap, client->irq, name); 33 33 } 34 34 35 - static int bmg160_i2c_remove(struct i2c_client *client) 35 + static void bmg160_i2c_remove(struct i2c_client *client) 36 36 { 37 37 bmg160_core_remove(&client->dev); 38 - 39 - return 0; 40 38 } 41 39 42 40 static const struct acpi_device_id bmg160_acpi_match[] = {
+1 -3
drivers/iio/gyro/fxas21002c_i2c.c
··· 33 33 return fxas21002c_core_probe(&i2c->dev, regmap, i2c->irq, i2c->name); 34 34 } 35 35 36 - static int fxas21002c_i2c_remove(struct i2c_client *i2c) 36 + static void fxas21002c_i2c_remove(struct i2c_client *i2c) 37 37 { 38 38 fxas21002c_core_remove(&i2c->dev); 39 - 40 - return 0; 41 39 } 42 40 43 41 static const struct i2c_device_id fxas21002c_i2c_id[] = {
+1 -3
drivers/iio/gyro/itg3200_core.c
··· 350 350 return ret; 351 351 } 352 352 353 - static int itg3200_remove(struct i2c_client *client) 353 + static void itg3200_remove(struct i2c_client *client) 354 354 { 355 355 struct iio_dev *indio_dev = i2c_get_clientdata(client); 356 356 ··· 360 360 itg3200_remove_trigger(indio_dev); 361 361 362 362 itg3200_buffer_unconfigure(indio_dev); 363 - 364 - return 0; 365 363 } 366 364 367 365 static int itg3200_suspend(struct device *dev)
+1 -3
drivers/iio/gyro/mpu3050-i2c.c
··· 78 78 return 0; 79 79 } 80 80 81 - static int mpu3050_i2c_remove(struct i2c_client *client) 81 + static void mpu3050_i2c_remove(struct i2c_client *client) 82 82 { 83 83 struct iio_dev *indio_dev = dev_get_drvdata(&client->dev); 84 84 struct mpu3050 *mpu3050 = iio_priv(indio_dev); ··· 87 87 i2c_mux_del_adapters(mpu3050->i2cmux); 88 88 89 89 mpu3050_common_remove(&client->dev); 90 - 91 - return 0; 92 90 } 93 91 94 92 /*
+1 -3
drivers/iio/health/afe4404.c
··· 578 578 return ret; 579 579 } 580 580 581 - static int afe4404_remove(struct i2c_client *client) 581 + static void afe4404_remove(struct i2c_client *client) 582 582 { 583 583 struct iio_dev *indio_dev = i2c_get_clientdata(client); 584 584 struct afe4404_data *afe = iio_priv(indio_dev); ··· 594 594 ret = regulator_disable(afe->regulator); 595 595 if (ret) 596 596 dev_err(afe->dev, "Unable to disable regulator\n"); 597 - 598 - return 0; 599 597 } 600 598 601 599 static const struct i2c_device_id afe4404_ids[] = {
+1 -3
drivers/iio/health/max30100.c
··· 471 471 return iio_device_register(indio_dev); 472 472 } 473 473 474 - static int max30100_remove(struct i2c_client *client) 474 + static void max30100_remove(struct i2c_client *client) 475 475 { 476 476 struct iio_dev *indio_dev = i2c_get_clientdata(client); 477 477 struct max30100_data *data = iio_priv(indio_dev); 478 478 479 479 iio_device_unregister(indio_dev); 480 480 max30100_set_powermode(data, false); 481 - 482 - return 0; 483 481 } 484 482 485 483 static const struct i2c_device_id max30100_id[] = {
+1 -3
drivers/iio/health/max30102.c
··· 592 592 return iio_device_register(indio_dev); 593 593 } 594 594 595 - static int max30102_remove(struct i2c_client *client) 595 + static void max30102_remove(struct i2c_client *client) 596 596 { 597 597 struct iio_dev *indio_dev = i2c_get_clientdata(client); 598 598 struct max30102_data *data = iio_priv(indio_dev); 599 599 600 600 iio_device_unregister(indio_dev); 601 601 max30102_set_power(data, false); 602 - 603 - return 0; 604 602 } 605 603 606 604 static const struct i2c_device_id max30102_id[] = {
+1 -3
drivers/iio/humidity/hdc2010.c
··· 308 308 return iio_device_register(indio_dev); 309 309 } 310 310 311 - static int hdc2010_remove(struct i2c_client *client) 311 + static void hdc2010_remove(struct i2c_client *client) 312 312 { 313 313 struct iio_dev *indio_dev = i2c_get_clientdata(client); 314 314 struct hdc2010_data *data = iio_priv(indio_dev); ··· 318 318 /* Disable Automatic Measurement Mode */ 319 319 if (hdc2010_update_drdy_config(data, HDC2010_AMM, 0)) 320 320 dev_warn(&client->dev, "Unable to restore default AMM\n"); 321 - 322 - return 0; 323 321 } 324 322 325 323 static const struct i2c_device_id hdc2010_id[] = {
+1 -3
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c
··· 157 157 return result; 158 158 } 159 159 160 - static int inv_mpu_remove(struct i2c_client *client) 160 + static void inv_mpu_remove(struct i2c_client *client) 161 161 { 162 162 struct iio_dev *indio_dev = i2c_get_clientdata(client); 163 163 struct inv_mpu6050_state *st = iio_priv(indio_dev); ··· 166 166 inv_mpu_acpi_delete_mux_client(client); 167 167 i2c_mux_del_adapters(st->muxc); 168 168 } 169 - 170 - return 0; 171 169 } 172 170 173 171 /*
+1 -3
drivers/iio/imu/kmx61.c
··· 1418 1418 return ret; 1419 1419 } 1420 1420 1421 - static int kmx61_remove(struct i2c_client *client) 1421 + static void kmx61_remove(struct i2c_client *client) 1422 1422 { 1423 1423 struct kmx61_data *data = i2c_get_clientdata(client); 1424 1424 ··· 1439 1439 mutex_lock(&data->lock); 1440 1440 kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, true); 1441 1441 mutex_unlock(&data->lock); 1442 - 1443 - return 0; 1444 1442 } 1445 1443 1446 1444 static int kmx61_suspend(struct device *dev)
+1 -3
drivers/iio/light/apds9300.c
··· 452 452 return ret; 453 453 } 454 454 455 - static int apds9300_remove(struct i2c_client *client) 455 + static void apds9300_remove(struct i2c_client *client) 456 456 { 457 457 struct iio_dev *indio_dev = i2c_get_clientdata(client); 458 458 struct apds9300_data *data = iio_priv(indio_dev); ··· 462 462 /* Ensure that power off and interrupts are disabled */ 463 463 apds9300_set_intr_state(data, 0); 464 464 apds9300_set_power_state(data, 0); 465 - 466 - return 0; 467 465 } 468 466 469 467 static int apds9300_suspend(struct device *dev)
+1 -3
drivers/iio/light/apds9960.c
··· 1067 1067 return ret; 1068 1068 } 1069 1069 1070 - static int apds9960_remove(struct i2c_client *client) 1070 + static void apds9960_remove(struct i2c_client *client) 1071 1071 { 1072 1072 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1073 1073 struct apds9960_data *data = iio_priv(indio_dev); ··· 1076 1076 pm_runtime_disable(&client->dev); 1077 1077 pm_runtime_set_suspended(&client->dev); 1078 1078 apds9960_set_powermode(data, 0); 1079 - 1080 - return 0; 1081 1079 } 1082 1080 1083 1081 #ifdef CONFIG_PM
+1 -3
drivers/iio/light/bh1750.c
··· 263 263 return iio_device_register(indio_dev); 264 264 } 265 265 266 - static int bh1750_remove(struct i2c_client *client) 266 + static void bh1750_remove(struct i2c_client *client) 267 267 { 268 268 struct iio_dev *indio_dev = i2c_get_clientdata(client); 269 269 struct bh1750_data *data = iio_priv(indio_dev); ··· 273 273 mutex_lock(&data->lock); 274 274 i2c_smbus_write_byte(client, BH1750_POWER_DOWN); 275 275 mutex_unlock(&data->lock); 276 - 277 - return 0; 278 276 } 279 277 280 278 static int bh1750_suspend(struct device *dev)
+1 -3
drivers/iio/light/bh1780.c
··· 202 202 return ret; 203 203 } 204 204 205 - static int bh1780_remove(struct i2c_client *client) 205 + static void bh1780_remove(struct i2c_client *client) 206 206 { 207 207 struct iio_dev *indio_dev = i2c_get_clientdata(client); 208 208 struct bh1780_data *bh1780 = iio_priv(indio_dev); ··· 216 216 if (ret < 0) 217 217 dev_err(&client->dev, "failed to power off (%pe)\n", 218 218 ERR_PTR(ret)); 219 - 220 - return 0; 221 219 } 222 220 223 221 static int bh1780_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/light/cm3232.c
··· 357 357 return iio_device_register(indio_dev); 358 358 } 359 359 360 - static int cm3232_remove(struct i2c_client *client) 360 + static void cm3232_remove(struct i2c_client *client) 361 361 { 362 362 struct iio_dev *indio_dev = i2c_get_clientdata(client); 363 363 ··· 365 365 CM3232_CMD_ALS_DISABLE); 366 366 367 367 iio_device_unregister(indio_dev); 368 - 369 - return 0; 370 368 } 371 369 372 370 static const struct i2c_device_id cm3232_id[] = {
+1 -3
drivers/iio/light/cm36651.c
··· 700 700 return ret; 701 701 } 702 702 703 - static int cm36651_remove(struct i2c_client *client) 703 + static void cm36651_remove(struct i2c_client *client) 704 704 { 705 705 struct iio_dev *indio_dev = i2c_get_clientdata(client); 706 706 struct cm36651_data *cm36651 = iio_priv(indio_dev); ··· 710 710 free_irq(client->irq, indio_dev); 711 711 i2c_unregister_device(cm36651->ps_client); 712 712 i2c_unregister_device(cm36651->ara_client); 713 - 714 - return 0; 715 713 } 716 714 717 715 static const struct i2c_device_id cm36651_id[] = {
+1 -3
drivers/iio/light/gp2ap002.c
··· 619 619 return ret; 620 620 } 621 621 622 - static int gp2ap002_remove(struct i2c_client *client) 622 + static void gp2ap002_remove(struct i2c_client *client) 623 623 { 624 624 struct iio_dev *indio_dev = i2c_get_clientdata(client); 625 625 struct gp2ap002 *gp2ap002 = iio_priv(indio_dev); ··· 631 631 iio_device_unregister(indio_dev); 632 632 regulator_disable(gp2ap002->vio); 633 633 regulator_disable(gp2ap002->vdd); 634 - 635 - return 0; 636 634 } 637 635 638 636 static int gp2ap002_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/light/gp2ap020a00f.c
··· 1573 1573 return err; 1574 1574 } 1575 1575 1576 - static int gp2ap020a00f_remove(struct i2c_client *client) 1576 + static void gp2ap020a00f_remove(struct i2c_client *client) 1577 1577 { 1578 1578 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1579 1579 struct gp2ap020a00f_data *data = iio_priv(indio_dev); ··· 1589 1589 free_irq(client->irq, indio_dev); 1590 1590 iio_triggered_buffer_cleanup(indio_dev); 1591 1591 regulator_disable(data->vled_reg); 1592 - 1593 - return 0; 1594 1592 } 1595 1593 1596 1594 static const struct i2c_device_id gp2ap020a00f_id[] = {
+1 -3
drivers/iio/light/isl29028.c
··· 636 636 return 0; 637 637 } 638 638 639 - static int isl29028_remove(struct i2c_client *client) 639 + static void isl29028_remove(struct i2c_client *client) 640 640 { 641 641 struct iio_dev *indio_dev = i2c_get_clientdata(client); 642 642 struct isl29028_chip *chip = iio_priv(indio_dev); ··· 647 647 pm_runtime_set_suspended(&client->dev); 648 648 649 649 isl29028_clear_configure_reg(chip); 650 - 651 - return 0; 652 650 } 653 651 654 652 static int isl29028_suspend(struct device *dev)
+1 -3
drivers/iio/light/isl29125.c
··· 300 300 (data->conf1 & ~ISL29125_MODE_MASK) | ISL29125_MODE_PD); 301 301 } 302 302 303 - static int isl29125_remove(struct i2c_client *client) 303 + static void isl29125_remove(struct i2c_client *client) 304 304 { 305 305 struct iio_dev *indio_dev = i2c_get_clientdata(client); 306 306 307 307 iio_device_unregister(indio_dev); 308 308 iio_triggered_buffer_cleanup(indio_dev); 309 309 isl29125_powerdown(iio_priv(indio_dev)); 310 - 311 - return 0; 312 310 } 313 311 314 312 static int isl29125_suspend(struct device *dev)
+1 -3
drivers/iio/light/jsa1212.c
··· 373 373 return ret; 374 374 } 375 375 376 - static int jsa1212_remove(struct i2c_client *client) 376 + static void jsa1212_remove(struct i2c_client *client) 377 377 { 378 378 struct iio_dev *indio_dev = i2c_get_clientdata(client); 379 379 struct jsa1212_data *data = iio_priv(indio_dev); ··· 381 381 iio_device_unregister(indio_dev); 382 382 383 383 jsa1212_power_off(data); 384 - 385 - return 0; 386 384 } 387 385 388 386 static int jsa1212_suspend(struct device *dev)
+1 -3
drivers/iio/light/ltr501.c
··· 1600 1600 return ret; 1601 1601 } 1602 1602 1603 - static int ltr501_remove(struct i2c_client *client) 1603 + static void ltr501_remove(struct i2c_client *client) 1604 1604 { 1605 1605 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1606 1606 1607 1607 iio_device_unregister(indio_dev); 1608 1608 iio_triggered_buffer_cleanup(indio_dev); 1609 1609 ltr501_powerdown(iio_priv(indio_dev)); 1610 - 1611 - return 0; 1612 1610 } 1613 1611 1614 1612 static int ltr501_suspend(struct device *dev)
+2 -4
drivers/iio/light/opt3001.c
··· 794 794 return 0; 795 795 } 796 796 797 - static int opt3001_remove(struct i2c_client *client) 797 + static void opt3001_remove(struct i2c_client *client) 798 798 { 799 799 struct iio_dev *iio = i2c_get_clientdata(client); 800 800 struct opt3001 *opt = iio_priv(iio); ··· 808 808 if (ret < 0) { 809 809 dev_err(opt->dev, "failed to read register %02x\n", 810 810 OPT3001_CONFIGURATION); 811 - return 0; 811 + return; 812 812 } 813 813 814 814 reg = ret; ··· 820 820 dev_err(opt->dev, "failed to write register %02x\n", 821 821 OPT3001_CONFIGURATION); 822 822 } 823 - 824 - return 0; 825 823 } 826 824 827 825 static const struct i2c_device_id opt3001_id[] = {
+1 -3
drivers/iio/light/pa12203001.c
··· 394 394 return ret; 395 395 } 396 396 397 - static int pa12203001_remove(struct i2c_client *client) 397 + static void pa12203001_remove(struct i2c_client *client) 398 398 { 399 399 struct iio_dev *indio_dev = i2c_get_clientdata(client); 400 400 int ret; ··· 408 408 if (ret) 409 409 dev_warn(&client->dev, "Failed to power down (%pe)\n", 410 410 ERR_PTR(ret)); 411 - 412 - return 0; 413 411 } 414 412 415 413 #if defined(CONFIG_PM_SLEEP) || defined(CONFIG_PM)
+1 -3
drivers/iio/light/rpr0521.c
··· 1041 1041 return ret; 1042 1042 } 1043 1043 1044 - static int rpr0521_remove(struct i2c_client *client) 1044 + static void rpr0521_remove(struct i2c_client *client) 1045 1045 { 1046 1046 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1047 1047 ··· 1051 1051 pm_runtime_set_suspended(&client->dev); 1052 1052 1053 1053 rpr0521_poweroff(iio_priv(indio_dev)); 1054 - 1055 - return 0; 1056 1054 } 1057 1055 1058 1056 static int rpr0521_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/light/stk3310.c
··· 649 649 return ret; 650 650 } 651 651 652 - static int stk3310_remove(struct i2c_client *client) 652 + static void stk3310_remove(struct i2c_client *client) 653 653 { 654 654 struct iio_dev *indio_dev = i2c_get_clientdata(client); 655 655 656 656 iio_device_unregister(indio_dev); 657 657 stk3310_set_state(iio_priv(indio_dev), STK3310_STATE_STANDBY); 658 - 659 - return 0; 660 658 } 661 659 662 660 static int stk3310_suspend(struct device *dev)
+1 -3
drivers/iio/light/tcs3472.c
··· 559 559 return ret; 560 560 } 561 561 562 - static int tcs3472_remove(struct i2c_client *client) 562 + static void tcs3472_remove(struct i2c_client *client) 563 563 { 564 564 struct iio_dev *indio_dev = i2c_get_clientdata(client); 565 565 ··· 568 568 free_irq(client->irq, indio_dev); 569 569 iio_triggered_buffer_cleanup(indio_dev); 570 570 tcs3472_powerdown(iio_priv(indio_dev)); 571 - 572 - return 0; 573 571 } 574 572 575 573 static int tcs3472_suspend(struct device *dev)
+1 -3
drivers/iio/light/tsl2563.c
··· 796 796 return err; 797 797 } 798 798 799 - static int tsl2563_remove(struct i2c_client *client) 799 + static void tsl2563_remove(struct i2c_client *client) 800 800 { 801 801 struct iio_dev *indio_dev = i2c_get_clientdata(client); 802 802 struct tsl2563_chip *chip = iio_priv(indio_dev); ··· 809 809 i2c_smbus_write_byte_data(chip->client, TSL2563_CMD | TSL2563_REG_INT, 810 810 chip->intr); 811 811 tsl2563_set_power(chip, 0); 812 - 813 - return 0; 814 812 } 815 813 816 814 static int tsl2563_suspend(struct device *dev)
+1 -3
drivers/iio/light/tsl2583.c
··· 873 873 return 0; 874 874 } 875 875 876 - static int tsl2583_remove(struct i2c_client *client) 876 + static void tsl2583_remove(struct i2c_client *client) 877 877 { 878 878 struct iio_dev *indio_dev = i2c_get_clientdata(client); 879 879 struct tsl2583_chip *chip = iio_priv(indio_dev); ··· 884 884 pm_runtime_set_suspended(&client->dev); 885 885 886 886 tsl2583_set_power_state(chip, TSL2583_CNTL_PWR_OFF); 887 - 888 - return 0; 889 887 } 890 888 891 889 static int tsl2583_suspend(struct device *dev)
+1 -3
drivers/iio/light/tsl4531.c
··· 207 207 TSL4531_MODE_POWERDOWN); 208 208 } 209 209 210 - static int tsl4531_remove(struct i2c_client *client) 210 + static void tsl4531_remove(struct i2c_client *client) 211 211 { 212 212 iio_device_unregister(i2c_get_clientdata(client)); 213 213 tsl4531_powerdown(client); 214 - 215 - return 0; 216 214 } 217 215 218 216 static int tsl4531_suspend(struct device *dev)
+1 -3
drivers/iio/light/us5182d.c
··· 904 904 905 905 } 906 906 907 - static int us5182d_remove(struct i2c_client *client) 907 + static void us5182d_remove(struct i2c_client *client) 908 908 { 909 909 struct us5182d_data *data = iio_priv(i2c_get_clientdata(client)); 910 910 int ret; ··· 918 918 if (ret) 919 919 dev_warn(&client->dev, "Failed to shut down (%pe)\n", 920 920 ERR_PTR(ret)); 921 - 922 - return 0; 923 921 } 924 922 925 923 static int us5182d_suspend(struct device *dev)
+1 -3
drivers/iio/light/vcnl4000.c
··· 1111 1111 }; 1112 1112 MODULE_DEVICE_TABLE(of, vcnl_4000_of_match); 1113 1113 1114 - static int vcnl4000_remove(struct i2c_client *client) 1114 + static void vcnl4000_remove(struct i2c_client *client) 1115 1115 { 1116 1116 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1117 1117 struct vcnl4000_data *data = iio_priv(indio_dev); ··· 1126 1126 if (ret) 1127 1127 dev_warn(&client->dev, "Failed to power down (%pe)\n", 1128 1128 ERR_PTR(ret)); 1129 - 1130 - return 0; 1131 1129 } 1132 1130 1133 1131 static int vcnl4000_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/light/vcnl4035.c
··· 601 601 return ret; 602 602 } 603 603 604 - static int vcnl4035_remove(struct i2c_client *client) 604 + static void vcnl4035_remove(struct i2c_client *client) 605 605 { 606 606 struct iio_dev *indio_dev = i2c_get_clientdata(client); 607 607 int ret; ··· 616 616 if (ret) 617 617 dev_warn(&client->dev, "Failed to put device into standby (%pe)\n", 618 618 ERR_PTR(ret)); 619 - 620 - return 0; 621 619 } 622 620 623 621 static int vcnl4035_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/light/veml6070.c
··· 180 180 return ret; 181 181 } 182 182 183 - static int veml6070_remove(struct i2c_client *client) 183 + static void veml6070_remove(struct i2c_client *client) 184 184 { 185 185 struct iio_dev *indio_dev = i2c_get_clientdata(client); 186 186 struct veml6070_data *data = iio_priv(indio_dev); 187 187 188 188 iio_device_unregister(indio_dev); 189 189 i2c_unregister_device(data->client2); 190 - 191 - return 0; 192 190 } 193 191 194 192 static const struct i2c_device_id veml6070_id[] = {
+1 -3
drivers/iio/magnetometer/ak8974.c
··· 969 969 return ret; 970 970 } 971 971 972 - static int ak8974_remove(struct i2c_client *i2c) 972 + static void ak8974_remove(struct i2c_client *i2c) 973 973 { 974 974 struct iio_dev *indio_dev = i2c_get_clientdata(i2c); 975 975 struct ak8974 *ak8974 = iio_priv(indio_dev); ··· 981 981 pm_runtime_disable(&i2c->dev); 982 982 ak8974_set_power(ak8974, AK8974_PWR_OFF); 983 983 regulator_bulk_disable(ARRAY_SIZE(ak8974->regs), ak8974->regs); 984 - 985 - return 0; 986 984 } 987 985 988 986 static int ak8974_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/magnetometer/ak8975.c
··· 1018 1018 return err; 1019 1019 } 1020 1020 1021 - static int ak8975_remove(struct i2c_client *client) 1021 + static void ak8975_remove(struct i2c_client *client) 1022 1022 { 1023 1023 struct iio_dev *indio_dev = i2c_get_clientdata(client); 1024 1024 struct ak8975_data *data = iio_priv(indio_dev); ··· 1030 1030 iio_triggered_buffer_cleanup(indio_dev); 1031 1031 ak8975_set_mode(data, POWER_DOWN); 1032 1032 ak8975_power_off(data); 1033 - 1034 - return 0; 1035 1033 } 1036 1034 1037 1035 static int ak8975_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/magnetometer/bmc150_magn_i2c.c
··· 34 34 return bmc150_magn_probe(&client->dev, regmap, client->irq, name); 35 35 } 36 36 37 - static int bmc150_magn_i2c_remove(struct i2c_client *client) 37 + static void bmc150_magn_i2c_remove(struct i2c_client *client) 38 38 { 39 39 bmc150_magn_remove(&client->dev); 40 - 41 - return 0; 42 40 } 43 41 44 42 static const struct acpi_device_id bmc150_magn_acpi_match[] = {
+1 -3
drivers/iio/magnetometer/hmc5843_i2c.c
··· 65 65 id->driver_data, id->name); 66 66 } 67 67 68 - static int hmc5843_i2c_remove(struct i2c_client *client) 68 + static void hmc5843_i2c_remove(struct i2c_client *client) 69 69 { 70 70 hmc5843_common_remove(&client->dev); 71 - 72 - return 0; 73 71 } 74 72 75 73 static const struct i2c_device_id hmc5843_id[] = {
+1 -3
drivers/iio/magnetometer/mag3110.c
··· 559 559 return ret; 560 560 } 561 561 562 - static int mag3110_remove(struct i2c_client *client) 562 + static void mag3110_remove(struct i2c_client *client) 563 563 { 564 564 struct iio_dev *indio_dev = i2c_get_clientdata(client); 565 565 struct mag3110_data *data = iio_priv(indio_dev); ··· 569 569 mag3110_standby(iio_priv(indio_dev)); 570 570 regulator_disable(data->vddio_reg); 571 571 regulator_disable(data->vdd_reg); 572 - 573 - return 0; 574 572 } 575 573 576 574 static int mag3110_suspend(struct device *dev)
+1 -3
drivers/iio/magnetometer/yamaha-yas530.c
··· 943 943 return ret; 944 944 } 945 945 946 - static int yas5xx_remove(struct i2c_client *i2c) 946 + static void yas5xx_remove(struct i2c_client *i2c) 947 947 { 948 948 struct iio_dev *indio_dev = i2c_get_clientdata(i2c); 949 949 struct yas5xx *yas5xx = iio_priv(indio_dev); ··· 961 961 pm_runtime_disable(dev); 962 962 gpiod_set_value_cansleep(yas5xx->reset, 1); 963 963 regulator_bulk_disable(ARRAY_SIZE(yas5xx->regs), yas5xx->regs); 964 - 965 - return 0; 966 964 } 967 965 968 966 static int yas5xx_runtime_suspend(struct device *dev)
+1 -3
drivers/iio/potentiostat/lmp91000.c
··· 384 384 return ret; 385 385 } 386 386 387 - static int lmp91000_remove(struct i2c_client *client) 387 + static void lmp91000_remove(struct i2c_client *client) 388 388 { 389 389 struct iio_dev *indio_dev = i2c_get_clientdata(client); 390 390 struct lmp91000_data *data = iio_priv(indio_dev); ··· 396 396 397 397 iio_triggered_buffer_cleanup(indio_dev); 398 398 iio_trigger_unregister(data->trig); 399 - 400 - return 0; 401 399 } 402 400 403 401 static const struct of_device_id lmp91000_of_match[] = {
+1 -3
drivers/iio/pressure/mpl3115.c
··· 290 290 data->ctrl_reg1 & ~MPL3115_CTRL_ACTIVE); 291 291 } 292 292 293 - static int mpl3115_remove(struct i2c_client *client) 293 + static void mpl3115_remove(struct i2c_client *client) 294 294 { 295 295 struct iio_dev *indio_dev = i2c_get_clientdata(client); 296 296 297 297 iio_device_unregister(indio_dev); 298 298 iio_triggered_buffer_cleanup(indio_dev); 299 299 mpl3115_standby(iio_priv(indio_dev)); 300 - 301 - return 0; 302 300 } 303 301 304 302 static int mpl3115_suspend(struct device *dev)
+1 -3
drivers/iio/pressure/ms5611_i2c.c
··· 105 105 return ms5611_probe(indio_dev, &client->dev, id->name, id->driver_data); 106 106 } 107 107 108 - static int ms5611_i2c_remove(struct i2c_client *client) 108 + static void ms5611_i2c_remove(struct i2c_client *client) 109 109 { 110 110 ms5611_remove(i2c_get_clientdata(client)); 111 - 112 - return 0; 113 111 } 114 112 115 113 static const struct of_device_id ms5611_i2c_matches[] = {
+1 -3
drivers/iio/pressure/zpa2326_i2c.c
··· 53 53 zpa2326_i2c_hwid(client), regmap); 54 54 } 55 55 56 - static int zpa2326_remove_i2c(struct i2c_client *client) 56 + static void zpa2326_remove_i2c(struct i2c_client *client) 57 57 { 58 58 zpa2326_remove(&client->dev); 59 - 60 - return 0; 61 59 } 62 60 63 61 static const struct i2c_device_id zpa2326_i2c_ids[] = {
+1 -3
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
··· 311 311 return ret; 312 312 } 313 313 314 - static int lidar_remove(struct i2c_client *client) 314 + static void lidar_remove(struct i2c_client *client) 315 315 { 316 316 struct iio_dev *indio_dev = i2c_get_clientdata(client); 317 317 ··· 320 320 321 321 pm_runtime_disable(&client->dev); 322 322 pm_runtime_set_suspended(&client->dev); 323 - 324 - return 0; 325 323 } 326 324 327 325 static const struct i2c_device_id lidar_id[] = {
+1 -3
drivers/iio/proximity/sx9500.c
··· 979 979 return ret; 980 980 } 981 981 982 - static int sx9500_remove(struct i2c_client *client) 982 + static void sx9500_remove(struct i2c_client *client) 983 983 { 984 984 struct iio_dev *indio_dev = i2c_get_clientdata(client); 985 985 struct sx9500_data *data = iio_priv(indio_dev); ··· 989 989 if (client->irq > 0) 990 990 iio_trigger_unregister(data->trig); 991 991 kfree(data->buffer); 992 - 993 - return 0; 994 992 } 995 993 996 994 static int sx9500_suspend(struct device *dev)
+1 -3
drivers/iio/temperature/mlx90614.c
··· 571 571 return iio_device_register(indio_dev); 572 572 } 573 573 574 - static int mlx90614_remove(struct i2c_client *client) 574 + static void mlx90614_remove(struct i2c_client *client) 575 575 { 576 576 struct iio_dev *indio_dev = i2c_get_clientdata(client); 577 577 struct mlx90614_data *data = iio_priv(indio_dev); ··· 584 584 mlx90614_sleep(data); 585 585 pm_runtime_set_suspended(&client->dev); 586 586 } 587 - 588 - return 0; 589 587 } 590 588 591 589 static const struct i2c_device_id mlx90614_id[] = {
+1 -3
drivers/iio/temperature/mlx90632.c
··· 924 924 return iio_device_register(indio_dev); 925 925 } 926 926 927 - static int mlx90632_remove(struct i2c_client *client) 927 + static void mlx90632_remove(struct i2c_client *client) 928 928 { 929 929 struct iio_dev *indio_dev = i2c_get_clientdata(client); 930 930 struct mlx90632_data *data = iio_priv(indio_dev); ··· 936 936 pm_runtime_put_noidle(&client->dev); 937 937 938 938 mlx90632_sleep(data); 939 - 940 - return 0; 941 939 } 942 940 943 941 static const struct i2c_device_id mlx90632_id[] = {
+1 -3
drivers/input/joystick/as5011.c
··· 327 327 return error; 328 328 } 329 329 330 - static int as5011_remove(struct i2c_client *client) 330 + static void as5011_remove(struct i2c_client *client) 331 331 { 332 332 struct as5011_device *as5011 = i2c_get_clientdata(client); 333 333 ··· 337 337 338 338 input_unregister_device(as5011->input_dev); 339 339 kfree(as5011); 340 - 341 - return 0; 342 340 } 343 341 344 342 static const struct i2c_device_id as5011_id[] = {
+1 -2
drivers/input/keyboard/adp5588-keys.c
··· 592 592 return 0; 593 593 } 594 594 595 - static int adp5588_remove(struct i2c_client *client) 595 + static void adp5588_remove(struct i2c_client *client) 596 596 { 597 597 adp5588_write(client, CFG, 0); 598 598 599 599 /* all resources will be freed by devm */ 600 - return 0; 601 600 } 602 601 603 602 static int __maybe_unused adp5588_suspend(struct device *dev)
+1 -3
drivers/input/keyboard/lm8323.c
··· 752 752 return err; 753 753 } 754 754 755 - static int lm8323_remove(struct i2c_client *client) 755 + static void lm8323_remove(struct i2c_client *client) 756 756 { 757 757 struct lm8323_chip *lm = i2c_get_clientdata(client); 758 758 int i; ··· 769 769 led_classdev_unregister(&lm->pwm[i].cdev); 770 770 771 771 kfree(lm); 772 - 773 - return 0; 774 772 } 775 773 776 774 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/input/keyboard/lm8333.c
··· 200 200 return err; 201 201 } 202 202 203 - static int lm8333_remove(struct i2c_client *client) 203 + static void lm8333_remove(struct i2c_client *client) 204 204 { 205 205 struct lm8333 *lm8333 = i2c_get_clientdata(client); 206 206 207 207 free_irq(client->irq, lm8333); 208 208 input_unregister_device(lm8333->input); 209 209 kfree(lm8333); 210 - 211 - return 0; 212 210 } 213 211 214 212 static const struct i2c_device_id lm8333_id[] = {
+1 -3
drivers/input/keyboard/mcs_touchkey.c
··· 194 194 return error; 195 195 } 196 196 197 - static int mcs_touchkey_remove(struct i2c_client *client) 197 + static void mcs_touchkey_remove(struct i2c_client *client) 198 198 { 199 199 struct mcs_touchkey_data *data = i2c_get_clientdata(client); 200 200 ··· 203 203 data->poweron(false); 204 204 input_unregister_device(data->input_dev); 205 205 kfree(data); 206 - 207 - return 0; 208 206 } 209 207 210 208 static void mcs_touchkey_shutdown(struct i2c_client *client)
+1 -3
drivers/input/keyboard/qt1070.c
··· 216 216 return err; 217 217 } 218 218 219 - static int qt1070_remove(struct i2c_client *client) 219 + static void qt1070_remove(struct i2c_client *client) 220 220 { 221 221 struct qt1070_data *data = i2c_get_clientdata(client); 222 222 ··· 225 225 226 226 input_unregister_device(data->input); 227 227 kfree(data); 228 - 229 - return 0; 230 228 } 231 229 232 230 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/input/keyboard/qt2160.c
··· 432 432 return error; 433 433 } 434 434 435 - static int qt2160_remove(struct i2c_client *client) 435 + static void qt2160_remove(struct i2c_client *client) 436 436 { 437 437 struct qt2160_data *qt2160 = i2c_get_clientdata(client); 438 438 ··· 446 446 447 447 input_unregister_device(qt2160->input); 448 448 kfree(qt2160); 449 - 450 - return 0; 451 449 } 452 450 453 451 static const struct i2c_device_id qt2160_idtable[] = {
+1 -3
drivers/input/keyboard/tca6416-keypad.c
··· 307 307 return error; 308 308 } 309 309 310 - static int tca6416_keypad_remove(struct i2c_client *client) 310 + static void tca6416_keypad_remove(struct i2c_client *client) 311 311 { 312 312 struct tca6416_keypad_chip *chip = i2c_get_clientdata(client); 313 313 ··· 318 318 319 319 input_unregister_device(chip->input); 320 320 kfree(chip); 321 - 322 - return 0; 323 321 } 324 322 325 323 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/input/misc/adxl34x-i2c.c
··· 99 99 return 0; 100 100 } 101 101 102 - static int adxl34x_i2c_remove(struct i2c_client *client) 102 + static void adxl34x_i2c_remove(struct i2c_client *client) 103 103 { 104 104 struct adxl34x *ac = i2c_get_clientdata(client); 105 105 106 106 adxl34x_remove(ac); 107 - 108 - return 0; 109 107 } 110 108 111 109 static int __maybe_unused adxl34x_i2c_suspend(struct device *dev)
+1 -3
drivers/input/misc/bma150.c
··· 513 513 return 0; 514 514 } 515 515 516 - static int bma150_remove(struct i2c_client *client) 516 + static void bma150_remove(struct i2c_client *client) 517 517 { 518 518 pm_runtime_disable(&client->dev); 519 - 520 - return 0; 521 519 } 522 520 523 521 static int __maybe_unused bma150_suspend(struct device *dev)
+1 -3
drivers/input/misc/cma3000_d0x_i2c.c
··· 58 58 return 0; 59 59 } 60 60 61 - static int cma3000_i2c_remove(struct i2c_client *client) 61 + static void cma3000_i2c_remove(struct i2c_client *client) 62 62 { 63 63 struct cma3000_accl_data *data = i2c_get_clientdata(client); 64 64 65 65 cma3000_exit(data); 66 - 67 - return 0; 68 66 } 69 67 70 68 #ifdef CONFIG_PM
+1 -3
drivers/input/misc/pcf8574_keypad.c
··· 157 157 return ret; 158 158 } 159 159 160 - static int pcf8574_kp_remove(struct i2c_client *client) 160 + static void pcf8574_kp_remove(struct i2c_client *client) 161 161 { 162 162 struct kp_data *lp = i2c_get_clientdata(client); 163 163 ··· 165 165 166 166 input_unregister_device(lp->idev); 167 167 kfree(lp); 168 - 169 - return 0; 170 168 } 171 169 172 170 #ifdef CONFIG_PM
+1 -3
drivers/input/mouse/synaptics_i2c.c
··· 587 587 return ret; 588 588 } 589 589 590 - static int synaptics_i2c_remove(struct i2c_client *client) 590 + static void synaptics_i2c_remove(struct i2c_client *client) 591 591 { 592 592 struct synaptics_i2c *touch = i2c_get_clientdata(client); 593 593 ··· 596 596 597 597 input_unregister_device(touch->input); 598 598 kfree(touch); 599 - 600 - return 0; 601 599 } 602 600 603 601 static int __maybe_unused synaptics_i2c_suspend(struct device *dev)
+1 -3
drivers/input/rmi4/rmi_smbus.c
··· 338 338 return 0; 339 339 } 340 340 341 - static int rmi_smb_remove(struct i2c_client *client) 341 + static void rmi_smb_remove(struct i2c_client *client) 342 342 { 343 343 struct rmi_smb_xport *rmi_smb = i2c_get_clientdata(client); 344 344 345 345 rmi_unregister_transport_device(&rmi_smb->xport); 346 - 347 - return 0; 348 346 } 349 347 350 348 static int __maybe_unused rmi_smb_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/atmel_mxt_ts.c
··· 3284 3284 return error; 3285 3285 } 3286 3286 3287 - static int mxt_remove(struct i2c_client *client) 3287 + static void mxt_remove(struct i2c_client *client) 3288 3288 { 3289 3289 struct mxt_data *data = i2c_get_clientdata(client); 3290 3290 ··· 3294 3294 mxt_free_object_table(data); 3295 3295 regulator_bulk_disable(ARRAY_SIZE(data->regulators), 3296 3296 data->regulators); 3297 - 3298 - return 0; 3299 3297 } 3300 3298 3301 3299 static int __maybe_unused mxt_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/bu21013_ts.c
··· 552 552 return 0; 553 553 } 554 554 555 - static int bu21013_remove(struct i2c_client *client) 555 + static void bu21013_remove(struct i2c_client *client) 556 556 { 557 557 struct bu21013_ts *ts = i2c_get_clientdata(client); 558 558 559 559 /* Make sure IRQ will exit quickly even if there is contact */ 560 560 ts->touch_stopped = true; 561 561 /* The resources will be freed by devm */ 562 - 563 - return 0; 564 562 } 565 563 566 564 static int __maybe_unused bu21013_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/cyttsp4_i2c.c
··· 43 43 return PTR_ERR_OR_ZERO(ts); 44 44 } 45 45 46 - static int cyttsp4_i2c_remove(struct i2c_client *client) 46 + static void cyttsp4_i2c_remove(struct i2c_client *client) 47 47 { 48 48 struct cyttsp4 *ts = i2c_get_clientdata(client); 49 49 50 50 cyttsp4_remove(ts); 51 - 52 - return 0; 53 51 } 54 52 55 53 static const struct i2c_device_id cyttsp4_i2c_id[] = {
+1 -3
drivers/input/touchscreen/edt-ft5x06.c
··· 1346 1346 return 0; 1347 1347 } 1348 1348 1349 - static int edt_ft5x06_ts_remove(struct i2c_client *client) 1349 + static void edt_ft5x06_ts_remove(struct i2c_client *client) 1350 1350 { 1351 1351 struct edt_ft5x06_ts_data *tsdata = i2c_get_clientdata(client); 1352 1352 1353 1353 edt_ft5x06_ts_teardown_debugfs(tsdata); 1354 - 1355 - return 0; 1356 1354 } 1357 1355 1358 1356 static int __maybe_unused edt_ft5x06_ts_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/goodix.c
··· 1382 1382 return 0; 1383 1383 } 1384 1384 1385 - static int goodix_ts_remove(struct i2c_client *client) 1385 + static void goodix_ts_remove(struct i2c_client *client) 1386 1386 { 1387 1387 struct goodix_ts_data *ts = i2c_get_clientdata(client); 1388 1388 1389 1389 if (ts->load_cfg_from_disk) 1390 1390 wait_for_completion(&ts->firmware_loading_complete); 1391 - 1392 - return 0; 1393 1391 } 1394 1392 1395 1393 static int __maybe_unused goodix_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/migor_ts.c
··· 176 176 return error; 177 177 } 178 178 179 - static int migor_ts_remove(struct i2c_client *client) 179 + static void migor_ts_remove(struct i2c_client *client) 180 180 { 181 181 struct migor_ts_priv *priv = i2c_get_clientdata(client); 182 182 ··· 185 185 kfree(priv); 186 186 187 187 dev_set_drvdata(&client->dev, NULL); 188 - 189 - return 0; 190 188 } 191 189 192 190 static int __maybe_unused migor_ts_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/s6sy761.c
··· 475 475 return 0; 476 476 } 477 477 478 - static int s6sy761_remove(struct i2c_client *client) 478 + static void s6sy761_remove(struct i2c_client *client) 479 479 { 480 480 pm_runtime_disable(&client->dev); 481 - 482 - return 0; 483 481 } 484 482 485 483 static int __maybe_unused s6sy761_runtime_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/stmfts.c
··· 738 738 return 0; 739 739 } 740 740 741 - static int stmfts_remove(struct i2c_client *client) 741 + static void stmfts_remove(struct i2c_client *client) 742 742 { 743 743 pm_runtime_disable(&client->dev); 744 - 745 - return 0; 746 744 } 747 745 748 746 static int __maybe_unused stmfts_runtime_suspend(struct device *dev)
+1 -3
drivers/input/touchscreen/tsc2004.c
··· 43 43 tsc2004_cmd); 44 44 } 45 45 46 - static int tsc2004_remove(struct i2c_client *i2c) 46 + static void tsc2004_remove(struct i2c_client *i2c) 47 47 { 48 48 tsc200x_remove(&i2c->dev); 49 - 50 - return 0; 51 49 } 52 50 53 51 static const struct i2c_device_id tsc2004_idtable[] = {
+1 -3
drivers/leds/flash/leds-as3645a.c
··· 724 724 return rval; 725 725 } 726 726 727 - static int as3645a_remove(struct i2c_client *client) 727 + static void as3645a_remove(struct i2c_client *client) 728 728 { 729 729 struct as3645a *flash = i2c_get_clientdata(client); 730 730 ··· 740 740 741 741 fwnode_handle_put(flash->flash_node); 742 742 fwnode_handle_put(flash->indicator_node); 743 - 744 - return 0; 745 743 } 746 744 747 745 static const struct i2c_device_id as3645a_id_table[] = {
+1 -3
drivers/leds/flash/leds-lm3601x.c
··· 440 440 return lm3601x_register_leds(led, fwnode); 441 441 } 442 442 443 - static int lm3601x_remove(struct i2c_client *client) 443 + static void lm3601x_remove(struct i2c_client *client) 444 444 { 445 445 struct lm3601x_led *led = i2c_get_clientdata(client); 446 446 int ret; ··· 450 450 if (ret) 451 451 dev_warn(&client->dev, 452 452 "Failed to put into standby (%pe)\n", ERR_PTR(ret)); 453 - 454 - return 0; 455 453 } 456 454 457 455 static const struct i2c_device_id lm3601x_id[] = {
+1 -2
drivers/leds/flash/leds-rt4505.c
··· 393 393 return 0; 394 394 } 395 395 396 - static int rt4505_remove(struct i2c_client *client) 396 + static void rt4505_remove(struct i2c_client *client) 397 397 { 398 398 struct rt4505_priv *priv = i2c_get_clientdata(client); 399 399 400 400 v4l2_flash_release(priv->v4l2_flash); 401 - return 0; 402 401 } 403 402 404 403 static void rt4505_shutdown(struct i2c_client *client)
+1 -3
drivers/leds/leds-an30259a.c
··· 334 334 return err; 335 335 } 336 336 337 - static int an30259a_remove(struct i2c_client *client) 337 + static void an30259a_remove(struct i2c_client *client) 338 338 { 339 339 struct an30259a *chip = i2c_get_clientdata(client); 340 340 341 341 mutex_destroy(&chip->mutex); 342 - 343 - return 0; 344 342 } 345 343 346 344 static const struct of_device_id an30259a_match_table[] = {
+1 -3
drivers/leds/leds-aw2013.c
··· 401 401 return ret; 402 402 } 403 403 404 - static int aw2013_remove(struct i2c_client *client) 404 + static void aw2013_remove(struct i2c_client *client) 405 405 { 406 406 struct aw2013 *chip = i2c_get_clientdata(client); 407 407 408 408 aw2013_chip_disable(chip); 409 409 410 410 mutex_destroy(&chip->mutex); 411 - 412 - return 0; 413 411 } 414 412 415 413 static const struct of_device_id aw2013_match_table[] = {
+1 -3
drivers/leds/leds-bd2802.c
··· 722 722 return ret; 723 723 } 724 724 725 - static int bd2802_remove(struct i2c_client *client) 725 + static void bd2802_remove(struct i2c_client *client) 726 726 { 727 727 struct bd2802_led *led = i2c_get_clientdata(client); 728 728 int i; ··· 733 733 bd2802_disable_adv_conf(led); 734 734 for (i = 0; i < ARRAY_SIZE(bd2802_attributes); i++) 735 735 device_remove_file(&led->client->dev, bd2802_attributes[i]); 736 - 737 - return 0; 738 736 } 739 737 740 738 #ifdef CONFIG_PM_SLEEP
+1 -2
drivers/leds/leds-blinkm.c
··· 677 677 return err; 678 678 } 679 679 680 - static int blinkm_remove(struct i2c_client *client) 680 + static void blinkm_remove(struct i2c_client *client) 681 681 { 682 682 struct blinkm_data *data = i2c_get_clientdata(client); 683 683 int ret = 0; ··· 716 716 dev_err(&client->dev, "Failure in blinkm_remove ignored. Continuing.\n"); 717 717 718 718 sysfs_remove_group(&client->dev.kobj, &blinkm_group); 719 - return 0; 720 719 } 721 720 722 721 static const struct i2c_device_id blinkm_id[] = {
+1 -3
drivers/leds/leds-is31fl32xx.c
··· 457 457 return 0; 458 458 } 459 459 460 - static int is31fl32xx_remove(struct i2c_client *client) 460 + static void is31fl32xx_remove(struct i2c_client *client) 461 461 { 462 462 struct is31fl32xx_priv *priv = i2c_get_clientdata(client); 463 463 int ret; ··· 466 466 if (ret) 467 467 dev_err(&client->dev, "Failed to reset registers on removal (%pe)\n", 468 468 ERR_PTR(ret)); 469 - 470 - return 0; 471 469 } 472 470 473 471 /*
+1 -2
drivers/leds/leds-lm3530.c
··· 470 470 return 0; 471 471 } 472 472 473 - static int lm3530_remove(struct i2c_client *client) 473 + static void lm3530_remove(struct i2c_client *client) 474 474 { 475 475 struct lm3530_data *drvdata = i2c_get_clientdata(client); 476 476 477 477 lm3530_led_disable(drvdata); 478 478 led_classdev_unregister(&drvdata->led_dev); 479 - return 0; 480 479 } 481 480 482 481 static const struct i2c_device_id lm3530_id[] = {
+1 -3
drivers/leds/leds-lm3532.c
··· 704 704 return ret; 705 705 } 706 706 707 - static int lm3532_remove(struct i2c_client *client) 707 + static void lm3532_remove(struct i2c_client *client) 708 708 { 709 709 struct lm3532_data *drvdata = i2c_get_clientdata(client); 710 710 ··· 712 712 713 713 if (drvdata->enable_gpio) 714 714 gpiod_direction_output(drvdata->enable_gpio, 0); 715 - 716 - return 0; 717 715 } 718 716 719 717 static const struct of_device_id of_lm3532_leds_match[] = {
+1 -3
drivers/leds/leds-lm355x.c
··· 491 491 return err; 492 492 } 493 493 494 - static int lm355x_remove(struct i2c_client *client) 494 + static void lm355x_remove(struct i2c_client *client) 495 495 { 496 496 struct lm355x_chip_data *chip = i2c_get_clientdata(client); 497 497 struct lm355x_reg_data *preg = chip->regs; ··· 501 501 led_classdev_unregister(&chip->cdev_torch); 502 502 led_classdev_unregister(&chip->cdev_flash); 503 503 dev_info(&client->dev, "%s is removed\n", lm355x_name[chip->type]); 504 - 505 - return 0; 506 504 } 507 505 508 506 static const struct i2c_device_id lm355x_id[] = {
+1 -2
drivers/leds/leds-lm3642.c
··· 380 380 return err; 381 381 } 382 382 383 - static int lm3642_remove(struct i2c_client *client) 383 + static void lm3642_remove(struct i2c_client *client) 384 384 { 385 385 struct lm3642_chip_data *chip = i2c_get_clientdata(client); 386 386 ··· 388 388 led_classdev_unregister(&chip->cdev_torch); 389 389 led_classdev_unregister(&chip->cdev_flash); 390 390 regmap_write(chip->regmap, REG_ENABLE, 0); 391 - return 0; 392 391 } 393 392 394 393 static const struct i2c_device_id lm3642_id[] = {
+1 -3
drivers/leds/leds-lm3692x.c
··· 491 491 return 0; 492 492 } 493 493 494 - static int lm3692x_remove(struct i2c_client *client) 494 + static void lm3692x_remove(struct i2c_client *client) 495 495 { 496 496 struct lm3692x_led *led = i2c_get_clientdata(client); 497 497 498 498 lm3692x_leds_disable(led); 499 499 mutex_destroy(&led->lock); 500 - 501 - return 0; 502 500 } 503 501 504 502 static const struct i2c_device_id lm3692x_id[] = {
+1 -3
drivers/leds/leds-lm3697.c
··· 337 337 return lm3697_init(led); 338 338 } 339 339 340 - static int lm3697_remove(struct i2c_client *client) 340 + static void lm3697_remove(struct i2c_client *client) 341 341 { 342 342 struct lm3697 *led = i2c_get_clientdata(client); 343 343 struct device *dev = &led->client->dev; ··· 358 358 } 359 359 360 360 mutex_destroy(&led->lock); 361 - 362 - return 0; 363 361 } 364 362 365 363 static const struct i2c_device_id lm3697_id[] = {
+1 -3
drivers/leds/leds-lp3944.c
··· 397 397 return 0; 398 398 } 399 399 400 - static int lp3944_remove(struct i2c_client *client) 400 + static void lp3944_remove(struct i2c_client *client) 401 401 { 402 402 struct lp3944_platform_data *pdata = dev_get_platdata(&client->dev); 403 403 struct lp3944_data *data = i2c_get_clientdata(client); ··· 414 414 default: 415 415 break; 416 416 } 417 - 418 - return 0; 419 417 } 420 418 421 419 /* lp3944 i2c driver struct */
+1 -3
drivers/leds/leds-lp3952.c
··· 255 255 return 0; 256 256 } 257 257 258 - static int lp3952_remove(struct i2c_client *client) 258 + static void lp3952_remove(struct i2c_client *client) 259 259 { 260 260 struct lp3952_led_array *priv; 261 261 262 262 priv = i2c_get_clientdata(client); 263 263 lp3952_on_off(priv, LP3952_LED_ALL, false); 264 264 gpiod_set_value(priv->enable_gpio, 0); 265 - 266 - return 0; 267 265 } 268 266 269 267 static const struct i2c_device_id lp3952_id[] = {
+1 -3
drivers/leds/leds-lp50xx.c
··· 563 563 return lp50xx_probe_dt(led); 564 564 } 565 565 566 - static int lp50xx_remove(struct i2c_client *client) 566 + static void lp50xx_remove(struct i2c_client *client) 567 567 { 568 568 struct lp50xx *led = i2c_get_clientdata(client); 569 569 int ret; ··· 579 579 } 580 580 581 581 mutex_destroy(&led->lock); 582 - 583 - return 0; 584 582 } 585 583 586 584 static const struct i2c_device_id lp50xx_id[] = {
+1 -3
drivers/leds/leds-lp5521.c
··· 579 579 return ret; 580 580 } 581 581 582 - static int lp5521_remove(struct i2c_client *client) 582 + static void lp5521_remove(struct i2c_client *client) 583 583 { 584 584 struct lp55xx_led *led = i2c_get_clientdata(client); 585 585 struct lp55xx_chip *chip = led->chip; ··· 587 587 lp5521_stop_all_engines(chip); 588 588 lp55xx_unregister_sysfs(chip); 589 589 lp55xx_deinit_device(chip); 590 - 591 - return 0; 592 590 } 593 591 594 592 static const struct i2c_device_id lp5521_id[] = {
+1 -3
drivers/leds/leds-lp5523.c
··· 947 947 return ret; 948 948 } 949 949 950 - static int lp5523_remove(struct i2c_client *client) 950 + static void lp5523_remove(struct i2c_client *client) 951 951 { 952 952 struct lp55xx_led *led = i2c_get_clientdata(client); 953 953 struct lp55xx_chip *chip = led->chip; ··· 955 955 lp5523_stop_all_engines(chip); 956 956 lp55xx_unregister_sysfs(chip); 957 957 lp55xx_deinit_device(chip); 958 - 959 - return 0; 960 958 } 961 959 962 960 static const struct i2c_device_id lp5523_id[] = {
+1 -3
drivers/leds/leds-lp5562.c
··· 573 573 return ret; 574 574 } 575 575 576 - static int lp5562_remove(struct i2c_client *client) 576 + static void lp5562_remove(struct i2c_client *client) 577 577 { 578 578 struct lp55xx_led *led = i2c_get_clientdata(client); 579 579 struct lp55xx_chip *chip = led->chip; ··· 582 582 583 583 lp55xx_unregister_sysfs(chip); 584 584 lp55xx_deinit_device(chip); 585 - 586 - return 0; 587 585 } 588 586 589 587 static const struct i2c_device_id lp5562_id[] = {
+1 -3
drivers/leds/leds-lp8501.c
··· 362 362 return ret; 363 363 } 364 364 365 - static int lp8501_remove(struct i2c_client *client) 365 + static void lp8501_remove(struct i2c_client *client) 366 366 { 367 367 struct lp55xx_led *led = i2c_get_clientdata(client); 368 368 struct lp55xx_chip *chip = led->chip; ··· 370 370 lp8501_stop_engine(chip); 371 371 lp55xx_unregister_sysfs(chip); 372 372 lp55xx_deinit_device(chip); 373 - 374 - return 0; 375 373 } 376 374 377 375 static const struct i2c_device_id lp8501_id[] = {
+1 -3
drivers/leds/leds-lp8860.c
··· 445 445 return 0; 446 446 } 447 447 448 - static int lp8860_remove(struct i2c_client *client) 448 + static void lp8860_remove(struct i2c_client *client) 449 449 { 450 450 struct lp8860_led *led = i2c_get_clientdata(client); 451 451 int ret; ··· 461 461 } 462 462 463 463 mutex_destroy(&led->lock); 464 - 465 - return 0; 466 464 } 467 465 468 466 static const struct i2c_device_id lp8860_id[] = {
+2 -4
drivers/leds/leds-pca9532.c
··· 52 52 53 53 static int pca9532_probe(struct i2c_client *client, 54 54 const struct i2c_device_id *id); 55 - static int pca9532_remove(struct i2c_client *client); 55 + static void pca9532_remove(struct i2c_client *client); 56 56 57 57 enum { 58 58 pca9530, ··· 546 546 return pca9532_configure(client, data, pca9532_pdata); 547 547 } 548 548 549 - static int pca9532_remove(struct i2c_client *client) 549 + static void pca9532_remove(struct i2c_client *client) 550 550 { 551 551 struct pca9532_data *data = i2c_get_clientdata(client); 552 552 553 553 pca9532_destroy_devices(data, data->chip_info->num_leds); 554 - 555 - return 0; 556 554 } 557 555 558 556 module_i2c_driver(pca9532_driver);
+1 -3
drivers/leds/leds-tca6507.c
··· 790 790 return err; 791 791 } 792 792 793 - static int tca6507_remove(struct i2c_client *client) 793 + static void tca6507_remove(struct i2c_client *client) 794 794 { 795 795 int i; 796 796 struct tca6507_chip *tca = i2c_get_clientdata(client); ··· 802 802 } 803 803 tca6507_remove_gpio(tca); 804 804 cancel_work_sync(&tca->work); 805 - 806 - return 0; 807 805 } 808 806 809 807 static struct i2c_driver tca6507_driver = {
+1 -3
drivers/leds/leds-turris-omnia.c
··· 242 242 return 0; 243 243 } 244 244 245 - static int omnia_leds_remove(struct i2c_client *client) 245 + static void omnia_leds_remove(struct i2c_client *client) 246 246 { 247 247 u8 buf[5]; 248 248 ··· 258 258 buf[4] = 255; 259 259 260 260 i2c_master_send(client, buf, 5); 261 - 262 - return 0; 263 261 } 264 262 265 263 static const struct of_device_id of_omnia_leds_match[] = {
+1 -3
drivers/macintosh/ams/ams-i2c.c
··· 230 230 return 0; 231 231 } 232 232 233 - static int ams_i2c_remove(struct i2c_client *client) 233 + static void ams_i2c_remove(struct i2c_client *client) 234 234 { 235 235 if (ams_info.has_device) { 236 236 ams_sensor_detach(); ··· 245 245 246 246 ams_info.has_device = 0; 247 247 } 248 - 249 - return 0; 250 248 } 251 249 252 250 static void ams_i2c_exit(void)
+1 -3
drivers/macintosh/therm_adt746x.c
··· 563 563 return 0; 564 564 } 565 565 566 - static int remove_thermostat(struct i2c_client *client) 566 + static void remove_thermostat(struct i2c_client *client) 567 567 { 568 568 struct thermostat *th = i2c_get_clientdata(client); 569 569 int i; ··· 585 585 write_both_fan_speed(th, -1); 586 586 587 587 kfree(th); 588 - 589 - return 0; 590 588 } 591 589 592 590 static const struct i2c_device_id therm_adt746x_id[] = {
+1 -3
drivers/macintosh/therm_windtunnel.c
··· 334 334 } 335 335 } 336 336 337 - static int 337 + static void 338 338 do_remove(struct i2c_client *client) 339 339 { 340 340 if (x.running) { ··· 348 348 x.fan = NULL; 349 349 else 350 350 printk(KERN_ERR "g4fan: bad client\n"); 351 - 352 - return 0; 353 351 } 354 352 355 353 static int
+1 -3
drivers/macintosh/windfarm_ad7417_sensor.c
··· 289 289 return 0; 290 290 } 291 291 292 - static int wf_ad7417_remove(struct i2c_client *client) 292 + static void wf_ad7417_remove(struct i2c_client *client) 293 293 { 294 294 struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev); 295 295 int i; ··· 302 302 wf_unregister_sensor(&pv->sensors[i]); 303 303 304 304 kref_put(&pv->ref, wf_ad7417_release); 305 - 306 - return 0; 307 305 } 308 306 309 307 static const struct i2c_device_id wf_ad7417_id[] = {
+1 -2
drivers/macintosh/windfarm_fcu_controls.c
··· 560 560 return 0; 561 561 } 562 562 563 - static int wf_fcu_remove(struct i2c_client *client) 563 + static void wf_fcu_remove(struct i2c_client *client) 564 564 { 565 565 struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev); 566 566 struct wf_fcu_fan *fan; ··· 571 571 wf_unregister_control(&fan->ctrl); 572 572 } 573 573 kref_put(&pv->ref, wf_fcu_release); 574 - return 0; 575 574 } 576 575 577 576 static const struct i2c_device_id wf_fcu_id[] = {
+1 -3
drivers/macintosh/windfarm_lm75_sensor.c
··· 147 147 return rc; 148 148 } 149 149 150 - static int wf_lm75_remove(struct i2c_client *client) 150 + static void wf_lm75_remove(struct i2c_client *client) 151 151 { 152 152 struct wf_lm75_sensor *lm = i2c_get_clientdata(client); 153 153 ··· 156 156 157 157 /* release sensor */ 158 158 wf_unregister_sensor(&lm->sens); 159 - 160 - return 0; 161 159 } 162 160 163 161 static const struct i2c_device_id wf_lm75_id[] = {
+1 -3
drivers/macintosh/windfarm_lm87_sensor.c
··· 145 145 return rc; 146 146 } 147 147 148 - static int wf_lm87_remove(struct i2c_client *client) 148 + static void wf_lm87_remove(struct i2c_client *client) 149 149 { 150 150 struct wf_lm87_sensor *lm = i2c_get_clientdata(client); 151 151 ··· 154 154 155 155 /* release sensor */ 156 156 wf_unregister_sensor(&lm->sens); 157 - 158 - return 0; 159 157 } 160 158 161 159 static const struct i2c_device_id wf_lm87_id[] = {
+1 -3
drivers/macintosh/windfarm_max6690_sensor.c
··· 104 104 return rc; 105 105 } 106 106 107 - static int wf_max6690_remove(struct i2c_client *client) 107 + static void wf_max6690_remove(struct i2c_client *client) 108 108 { 109 109 struct wf_6690_sensor *max = i2c_get_clientdata(client); 110 110 111 111 max->i2c = NULL; 112 112 wf_unregister_sensor(&max->sens); 113 - 114 - return 0; 115 113 } 116 114 117 115 static const struct i2c_device_id wf_max6690_id[] = {
+1 -3
drivers/macintosh/windfarm_smu_sat.c
··· 316 316 return 0; 317 317 } 318 318 319 - static int wf_sat_remove(struct i2c_client *client) 319 + static void wf_sat_remove(struct i2c_client *client) 320 320 { 321 321 struct wf_sat *sat = i2c_get_clientdata(client); 322 322 struct wf_sat_sensor *sens; ··· 330 330 } 331 331 sat->i2c = NULL; 332 332 kref_put(&sat->ref, wf_sat_release); 333 - 334 - return 0; 335 333 } 336 334 337 335 static const struct i2c_device_id wf_sat_id[] = {
+1 -3
drivers/media/cec/i2c/ch7322.c
··· 565 565 return ret; 566 566 } 567 567 568 - static int ch7322_remove(struct i2c_client *client) 568 + static void ch7322_remove(struct i2c_client *client) 569 569 { 570 570 struct ch7322 *ch7322 = i2c_get_clientdata(client); 571 571 ··· 578 578 mutex_destroy(&ch7322->mutex); 579 579 580 580 dev_info(&client->dev, "device unregistered\n"); 581 - 582 - return 0; 583 581 } 584 582 585 583 static const struct of_device_id ch7322_of_match[] = {
+1 -2
drivers/media/dvb-frontends/a8293.c
··· 98 98 return ret; 99 99 } 100 100 101 - static int a8293_remove(struct i2c_client *client) 101 + static void a8293_remove(struct i2c_client *client) 102 102 { 103 103 struct a8293_dev *dev = i2c_get_clientdata(client); 104 104 105 105 dev_dbg(&client->dev, "\n"); 106 106 107 107 kfree(dev); 108 - return 0; 109 108 } 110 109 111 110 static const struct i2c_device_id a8293_id_table[] = {
+1 -3
drivers/media/dvb-frontends/af9013.c
··· 1540 1540 return ret; 1541 1541 } 1542 1542 1543 - static int af9013_remove(struct i2c_client *client) 1543 + static void af9013_remove(struct i2c_client *client) 1544 1544 { 1545 1545 struct af9013_state *state = i2c_get_clientdata(client); 1546 1546 ··· 1551 1551 regmap_exit(state->regmap); 1552 1552 1553 1553 kfree(state); 1554 - 1555 - return 0; 1556 1554 } 1557 1555 1558 1556 static const struct i2c_device_id af9013_id_table[] = {
+1 -3
drivers/media/dvb-frontends/af9033.c
··· 1163 1163 return ret; 1164 1164 } 1165 1165 1166 - static int af9033_remove(struct i2c_client *client) 1166 + static void af9033_remove(struct i2c_client *client) 1167 1167 { 1168 1168 struct af9033_dev *dev = i2c_get_clientdata(client); 1169 1169 ··· 1171 1171 1172 1172 regmap_exit(dev->regmap); 1173 1173 kfree(dev); 1174 - 1175 - return 0; 1176 1174 } 1177 1175 1178 1176 static const struct i2c_device_id af9033_id_table[] = {
+1 -2
drivers/media/dvb-frontends/au8522_decoder.c
··· 758 758 return 0; 759 759 } 760 760 761 - static int au8522_remove(struct i2c_client *client) 761 + static void au8522_remove(struct i2c_client *client) 762 762 { 763 763 struct v4l2_subdev *sd = i2c_get_clientdata(client); 764 764 v4l2_device_unregister_subdev(sd); 765 765 v4l2_ctrl_handler_free(sd->ctrl_handler); 766 766 au8522_release_state(to_state(sd)); 767 - return 0; 768 767 } 769 768 770 769 static const struct i2c_device_id au8522_id[] = {
+1 -3
drivers/media/dvb-frontends/cxd2099.c
··· 664 664 return ret; 665 665 } 666 666 667 - static int cxd2099_remove(struct i2c_client *client) 667 + static void cxd2099_remove(struct i2c_client *client) 668 668 { 669 669 struct cxd *ci = i2c_get_clientdata(client); 670 670 671 671 regmap_exit(ci->regmap); 672 672 kfree(ci); 673 - 674 - return 0; 675 673 } 676 674 677 675 static const struct i2c_device_id cxd2099_id[] = {
+1 -3
drivers/media/dvb-frontends/cxd2820r_core.c
··· 705 705 return ret; 706 706 } 707 707 708 - static int cxd2820r_remove(struct i2c_client *client) 708 + static void cxd2820r_remove(struct i2c_client *client) 709 709 { 710 710 struct cxd2820r_priv *priv = i2c_get_clientdata(client); 711 711 ··· 721 721 regmap_exit(priv->regmap[0]); 722 722 723 723 kfree(priv); 724 - 725 - return 0; 726 724 } 727 725 728 726 static const struct i2c_device_id cxd2820r_id_table[] = {
+1 -2
drivers/media/dvb-frontends/dvb-pll.c
··· 899 899 return 0; 900 900 } 901 901 902 - static int dvb_pll_remove(struct i2c_client *client) 902 + static void dvb_pll_remove(struct i2c_client *client) 903 903 { 904 904 struct dvb_frontend *fe = i2c_get_clientdata(client); 905 905 struct dvb_pll_priv *priv = fe->tuner_priv; 906 906 907 907 ida_simple_remove(&pll_ida, priv->nr); 908 908 dvb_pll_release(fe); 909 - return 0; 910 909 } 911 910 912 911
+1 -3
drivers/media/dvb-frontends/lgdt3306a.c
··· 2226 2226 return ret; 2227 2227 } 2228 2228 2229 - static int lgdt3306a_remove(struct i2c_client *client) 2229 + static void lgdt3306a_remove(struct i2c_client *client) 2230 2230 { 2231 2231 struct lgdt3306a_state *state = i2c_get_clientdata(client); 2232 2232 ··· 2237 2237 2238 2238 kfree(state->cfg); 2239 2239 kfree(state); 2240 - 2241 - return 0; 2242 2240 } 2243 2241 2244 2242 static const struct i2c_device_id lgdt3306a_id_table[] = {
+1 -3
drivers/media/dvb-frontends/lgdt330x.c
··· 974 974 .release = lgdt330x_release, 975 975 }; 976 976 977 - static int lgdt330x_remove(struct i2c_client *client) 977 + static void lgdt330x_remove(struct i2c_client *client) 978 978 { 979 979 struct lgdt330x_state *state = i2c_get_clientdata(client); 980 980 981 981 dev_dbg(&client->dev, "\n"); 982 982 983 983 kfree(state); 984 - 985 - return 0; 986 984 } 987 985 988 986 static const struct i2c_device_id lgdt330x_id_table[] = {
+1 -2
drivers/media/dvb-frontends/m88ds3103.c
··· 1914 1914 return ret; 1915 1915 } 1916 1916 1917 - static int m88ds3103_remove(struct i2c_client *client) 1917 + static void m88ds3103_remove(struct i2c_client *client) 1918 1918 { 1919 1919 struct m88ds3103_dev *dev = i2c_get_clientdata(client); 1920 1920 ··· 1926 1926 i2c_mux_del_adapters(dev->muxc); 1927 1927 1928 1928 kfree(dev); 1929 - return 0; 1930 1929 } 1931 1930 1932 1931 static const struct i2c_device_id m88ds3103_id_table[] = {
+1 -3
drivers/media/dvb-frontends/mn88443x.c
··· 762 762 return ret; 763 763 } 764 764 765 - static int mn88443x_remove(struct i2c_client *client) 765 + static void mn88443x_remove(struct i2c_client *client) 766 766 { 767 767 struct mn88443x_priv *chip = i2c_get_clientdata(client); 768 768 769 769 mn88443x_cmn_power_off(chip); 770 770 771 771 i2c_unregister_device(chip->client_t); 772 - 773 - return 0; 774 772 } 775 773 776 774 static const struct mn88443x_spec mn88443x_spec_pri = {
+1 -3
drivers/media/dvb-frontends/mn88472.c
··· 691 691 return ret; 692 692 } 693 693 694 - static int mn88472_remove(struct i2c_client *client) 694 + static void mn88472_remove(struct i2c_client *client) 695 695 { 696 696 struct mn88472_dev *dev = i2c_get_clientdata(client); 697 697 ··· 706 706 regmap_exit(dev->regmap[0]); 707 707 708 708 kfree(dev); 709 - 710 - return 0; 711 709 } 712 710 713 711 static const struct i2c_device_id mn88472_id_table[] = {
+1 -3
drivers/media/dvb-frontends/mn88473.c
··· 726 726 return ret; 727 727 } 728 728 729 - static int mn88473_remove(struct i2c_client *client) 729 + static void mn88473_remove(struct i2c_client *client) 730 730 { 731 731 struct mn88473_dev *dev = i2c_get_clientdata(client); 732 732 ··· 741 741 regmap_exit(dev->regmap[0]); 742 742 743 743 kfree(dev); 744 - 745 - return 0; 746 744 } 747 745 748 746 static const struct i2c_device_id mn88473_id_table[] = {
+1 -3
drivers/media/dvb-frontends/mxl692.c
··· 1337 1337 return -ENODEV; 1338 1338 } 1339 1339 1340 - static int mxl692_remove(struct i2c_client *client) 1340 + static void mxl692_remove(struct i2c_client *client) 1341 1341 { 1342 1342 struct mxl692_dev *dev = i2c_get_clientdata(client); 1343 1343 1344 1344 dev->fe.demodulator_priv = NULL; 1345 1345 i2c_set_clientdata(client, NULL); 1346 1346 kfree(dev); 1347 - 1348 - return 0; 1349 1347 } 1350 1348 1351 1349 static const struct i2c_device_id mxl692_id_table[] = {
+1 -3
drivers/media/dvb-frontends/rtl2830.c
··· 865 865 return ret; 866 866 } 867 867 868 - static int rtl2830_remove(struct i2c_client *client) 868 + static void rtl2830_remove(struct i2c_client *client) 869 869 { 870 870 struct rtl2830_dev *dev = i2c_get_clientdata(client); 871 871 ··· 874 874 i2c_mux_del_adapters(dev->muxc); 875 875 regmap_exit(dev->regmap); 876 876 kfree(dev); 877 - 878 - return 0; 879 877 } 880 878 881 879 static const struct i2c_device_id rtl2830_id_table[] = {
+1 -3
drivers/media/dvb-frontends/rtl2832.c
··· 1110 1110 return ret; 1111 1111 } 1112 1112 1113 - static int rtl2832_remove(struct i2c_client *client) 1113 + static void rtl2832_remove(struct i2c_client *client) 1114 1114 { 1115 1115 struct rtl2832_dev *dev = i2c_get_clientdata(client); 1116 1116 ··· 1123 1123 regmap_exit(dev->regmap); 1124 1124 1125 1125 kfree(dev); 1126 - 1127 - return 0; 1128 1126 } 1129 1127 1130 1128 static const struct i2c_device_id rtl2832_id_table[] = {
+1 -2
drivers/media/dvb-frontends/si2165.c
··· 1274 1274 return ret; 1275 1275 } 1276 1276 1277 - static int si2165_remove(struct i2c_client *client) 1277 + static void si2165_remove(struct i2c_client *client) 1278 1278 { 1279 1279 struct si2165_state *state = i2c_get_clientdata(client); 1280 1280 1281 1281 dev_dbg(&client->dev, "\n"); 1282 1282 1283 1283 kfree(state); 1284 - return 0; 1285 1284 } 1286 1285 1287 1286 static const struct i2c_device_id si2165_id_table[] = {
+1 -3
drivers/media/dvb-frontends/si2168.c
··· 774 774 return ret; 775 775 } 776 776 777 - static int si2168_remove(struct i2c_client *client) 777 + static void si2168_remove(struct i2c_client *client) 778 778 { 779 779 struct si2168_dev *dev = i2c_get_clientdata(client); 780 780 ··· 786 786 dev->fe.demodulator_priv = NULL; 787 787 788 788 kfree(dev); 789 - 790 - return 0; 791 789 } 792 790 793 791 static const struct i2c_device_id si2168_id_table[] = {
+1 -2
drivers/media/dvb-frontends/sp2.c
··· 398 398 return ret; 399 399 } 400 400 401 - static int sp2_remove(struct i2c_client *client) 401 + static void sp2_remove(struct i2c_client *client) 402 402 { 403 403 struct sp2 *s = i2c_get_clientdata(client); 404 404 405 405 dev_dbg(&client->dev, "\n"); 406 406 sp2_exit(client); 407 407 kfree(s); 408 - return 0; 409 408 } 410 409 411 410 static const struct i2c_device_id sp2_id[] = {
+1 -2
drivers/media/dvb-frontends/stv090x.c
··· 5032 5032 return ret; 5033 5033 } 5034 5034 5035 - static int stv090x_remove(struct i2c_client *client) 5035 + static void stv090x_remove(struct i2c_client *client) 5036 5036 { 5037 5037 struct stv090x_state *state = i2c_get_clientdata(client); 5038 5038 5039 5039 stv090x_release(&state->frontend); 5040 - return 0; 5041 5040 } 5042 5041 5043 5042 struct dvb_frontend *stv090x_attach(struct stv090x_config *config,
+1 -2
drivers/media/dvb-frontends/stv6110x.c
··· 436 436 return 0; 437 437 } 438 438 439 - static int stv6110x_remove(struct i2c_client *client) 439 + static void stv6110x_remove(struct i2c_client *client) 440 440 { 441 441 struct stv6110x_state *stv6110x = i2c_get_clientdata(client); 442 442 443 443 stv6110x_release(stv6110x->frontend); 444 - return 0; 445 444 } 446 445 447 446 const struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
+1 -2
drivers/media/dvb-frontends/tc90522.c
··· 819 819 return ret; 820 820 } 821 821 822 - static int tc90522_remove(struct i2c_client *client) 822 + static void tc90522_remove(struct i2c_client *client) 823 823 { 824 824 struct tc90522_state *state; 825 825 826 826 state = cfg_to_state(i2c_get_clientdata(client)); 827 827 i2c_del_adapter(&state->tuner_i2c); 828 828 kfree(state); 829 - return 0; 830 829 } 831 830 832 831
+1 -2
drivers/media/dvb-frontends/tda10071.c
··· 1221 1221 return ret; 1222 1222 } 1223 1223 1224 - static int tda10071_remove(struct i2c_client *client) 1224 + static void tda10071_remove(struct i2c_client *client) 1225 1225 { 1226 1226 struct tda10071_dev *dev = i2c_get_clientdata(client); 1227 1227 1228 1228 dev_dbg(&client->dev, "\n"); 1229 1229 1230 1230 kfree(dev); 1231 - return 0; 1232 1231 } 1233 1232 1234 1233 static const struct i2c_device_id tda10071_id_table[] = {
+1 -2
drivers/media/dvb-frontends/ts2020.c
··· 696 696 return ret; 697 697 } 698 698 699 - static int ts2020_remove(struct i2c_client *client) 699 + static void ts2020_remove(struct i2c_client *client) 700 700 { 701 701 struct ts2020_priv *dev = i2c_get_clientdata(client); 702 702 ··· 708 708 709 709 regmap_exit(dev->regmap); 710 710 kfree(dev); 711 - return 0; 712 711 } 713 712 714 713 static const struct i2c_device_id ts2020_id_table[] = {
+1 -2
drivers/media/i2c/ad5820.c
··· 342 342 return ret; 343 343 } 344 344 345 - static int ad5820_remove(struct i2c_client *client) 345 + static void ad5820_remove(struct i2c_client *client) 346 346 { 347 347 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 348 348 struct ad5820_device *coil = to_ad5820_device(subdev); ··· 351 351 v4l2_ctrl_handler_free(&coil->ctrls); 352 352 media_entity_cleanup(&coil->subdev.entity); 353 353 mutex_destroy(&coil->power_lock); 354 - return 0; 355 354 } 356 355 357 356 static const struct i2c_device_id ad5820_id_table[] = {
+1 -2
drivers/media/i2c/ad9389b.c
··· 1174 1174 1175 1175 /* ----------------------------------------------------------------------- */ 1176 1176 1177 - static int ad9389b_remove(struct i2c_client *client) 1177 + static void ad9389b_remove(struct i2c_client *client) 1178 1178 { 1179 1179 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1180 1180 struct ad9389b_state *state = get_ad9389b_state(sd); ··· 1192 1192 v4l2_device_unregister_subdev(sd); 1193 1193 media_entity_cleanup(&sd->entity); 1194 1194 v4l2_ctrl_handler_free(sd->ctrl_handler); 1195 - return 0; 1196 1195 } 1197 1196 1198 1197 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/adp1653.c
··· 510 510 return ret; 511 511 } 512 512 513 - static int adp1653_remove(struct i2c_client *client) 513 + static void adp1653_remove(struct i2c_client *client) 514 514 { 515 515 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 516 516 struct adp1653_flash *flash = to_adp1653_flash(subdev); ··· 518 518 v4l2_device_unregister_subdev(&flash->subdev); 519 519 v4l2_ctrl_handler_free(&flash->ctrls); 520 520 media_entity_cleanup(&flash->subdev.entity); 521 - 522 - return 0; 523 521 } 524 522 525 523 static const struct i2c_device_id adp1653_id_table[] = {
+1 -2
drivers/media/i2c/adv7170.c
··· 368 368 return 0; 369 369 } 370 370 371 - static int adv7170_remove(struct i2c_client *client) 371 + static void adv7170_remove(struct i2c_client *client) 372 372 { 373 373 struct v4l2_subdev *sd = i2c_get_clientdata(client); 374 374 375 375 v4l2_device_unregister_subdev(sd); 376 - return 0; 377 376 } 378 377 379 378 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/adv7175.c
··· 423 423 return 0; 424 424 } 425 425 426 - static int adv7175_remove(struct i2c_client *client) 426 + static void adv7175_remove(struct i2c_client *client) 427 427 { 428 428 struct v4l2_subdev *sd = i2c_get_clientdata(client); 429 429 430 430 v4l2_device_unregister_subdev(sd); 431 - return 0; 432 431 } 433 432 434 433 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/adv7180.c
··· 1514 1514 return ret; 1515 1515 } 1516 1516 1517 - static int adv7180_remove(struct i2c_client *client) 1517 + static void adv7180_remove(struct i2c_client *client) 1518 1518 { 1519 1519 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1520 1520 struct adv7180_state *state = to_state(sd); ··· 1534 1534 adv7180_set_power_pin(state, false); 1535 1535 1536 1536 mutex_destroy(&state->mutex); 1537 - 1538 - return 0; 1539 1537 } 1540 1538 1541 1539 static const struct i2c_device_id adv7180_id[] = {
+1 -2
drivers/media/i2c/adv7183.c
··· 613 613 return 0; 614 614 } 615 615 616 - static int adv7183_remove(struct i2c_client *client) 616 + static void adv7183_remove(struct i2c_client *client) 617 617 { 618 618 struct v4l2_subdev *sd = i2c_get_clientdata(client); 619 619 620 620 v4l2_device_unregister_subdev(sd); 621 621 v4l2_ctrl_handler_free(sd->ctrl_handler); 622 - return 0; 623 622 } 624 623 625 624 static const struct i2c_device_id adv7183_id[] = {
+1 -3
drivers/media/i2c/adv7343.c
··· 492 492 return err; 493 493 } 494 494 495 - static int adv7343_remove(struct i2c_client *client) 495 + static void adv7343_remove(struct i2c_client *client) 496 496 { 497 497 struct v4l2_subdev *sd = i2c_get_clientdata(client); 498 498 struct adv7343_state *state = to_state(sd); 499 499 500 500 v4l2_async_unregister_subdev(&state->sd); 501 501 v4l2_ctrl_handler_free(&state->hdl); 502 - 503 - return 0; 504 502 } 505 503 506 504 static const struct i2c_device_id adv7343_id[] = {
+1 -3
drivers/media/i2c/adv7393.c
··· 437 437 return err; 438 438 } 439 439 440 - static int adv7393_remove(struct i2c_client *client) 440 + static void adv7393_remove(struct i2c_client *client) 441 441 { 442 442 struct v4l2_subdev *sd = i2c_get_clientdata(client); 443 443 struct adv7393_state *state = to_state(sd); 444 444 445 445 v4l2_device_unregister_subdev(sd); 446 446 v4l2_ctrl_handler_free(&state->hdl); 447 - 448 - return 0; 449 447 } 450 448 451 449 static const struct i2c_device_id adv7393_id[] = {
+1 -3
drivers/media/i2c/adv748x/adv748x-core.c
··· 815 815 return ret; 816 816 } 817 817 818 - static int adv748x_remove(struct i2c_client *client) 818 + static void adv748x_remove(struct i2c_client *client) 819 819 { 820 820 struct adv748x_state *state = i2c_get_clientdata(client); 821 821 ··· 828 828 adv748x_unregister_clients(state); 829 829 adv748x_dt_cleanup(state); 830 830 mutex_destroy(&state->mutex); 831 - 832 - return 0; 833 831 } 834 832 835 833 static const struct of_device_id adv748x_of_table[] = {
+1 -2
drivers/media/i2c/adv7511-v4l2.c
··· 1923 1923 1924 1924 /* ----------------------------------------------------------------------- */ 1925 1925 1926 - static int adv7511_remove(struct i2c_client *client) 1926 + static void adv7511_remove(struct i2c_client *client) 1927 1927 { 1928 1928 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1929 1929 struct adv7511_state *state = get_adv7511_state(sd); ··· 1943 1943 v4l2_device_unregister_subdev(sd); 1944 1944 media_entity_cleanup(&sd->entity); 1945 1945 v4l2_ctrl_handler_free(sd->ctrl_handler); 1946 - return 0; 1947 1946 } 1948 1947 1949 1948 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/adv7604.c
··· 3660 3660 3661 3661 /* ----------------------------------------------------------------------- */ 3662 3662 3663 - static int adv76xx_remove(struct i2c_client *client) 3663 + static void adv76xx_remove(struct i2c_client *client) 3664 3664 { 3665 3665 struct v4l2_subdev *sd = i2c_get_clientdata(client); 3666 3666 struct adv76xx_state *state = to_state(sd); ··· 3677 3677 media_entity_cleanup(&sd->entity); 3678 3678 adv76xx_unregister_clients(to_state(sd)); 3679 3679 v4l2_ctrl_handler_free(sd->ctrl_handler); 3680 - return 0; 3681 3680 } 3682 3681 3683 3682 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/adv7842.c
··· 3593 3593 3594 3594 /* ----------------------------------------------------------------------- */ 3595 3595 3596 - static int adv7842_remove(struct i2c_client *client) 3596 + static void adv7842_remove(struct i2c_client *client) 3597 3597 { 3598 3598 struct v4l2_subdev *sd = i2c_get_clientdata(client); 3599 3599 struct adv7842_state *state = to_state(sd); ··· 3604 3604 media_entity_cleanup(&sd->entity); 3605 3605 adv7842_unregister_clients(sd); 3606 3606 v4l2_ctrl_handler_free(sd->ctrl_handler); 3607 - return 0; 3608 3607 } 3609 3608 3610 3609 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/ak7375.c
··· 169 169 return ret; 170 170 } 171 171 172 - static int ak7375_remove(struct i2c_client *client) 172 + static void ak7375_remove(struct i2c_client *client) 173 173 { 174 174 struct v4l2_subdev *sd = i2c_get_clientdata(client); 175 175 struct ak7375_device *ak7375_dev = sd_to_ak7375_vcm(sd); ··· 177 177 ak7375_subdev_cleanup(ak7375_dev); 178 178 pm_runtime_disable(&client->dev); 179 179 pm_runtime_set_suspended(&client->dev); 180 - 181 - return 0; 182 180 } 183 181 184 182 /*
+1 -3
drivers/media/i2c/ak881x.c
··· 297 297 return 0; 298 298 } 299 299 300 - static int ak881x_remove(struct i2c_client *client) 300 + static void ak881x_remove(struct i2c_client *client) 301 301 { 302 302 struct ak881x *ak881x = to_ak881x(client); 303 303 304 304 v4l2_device_unregister_subdev(&ak881x->subdev); 305 - 306 - return 0; 307 305 } 308 306 309 307 static const struct i2c_device_id ak881x_id[] = {
+1 -2
drivers/media/i2c/ar0521.c
··· 1018 1018 return ret; 1019 1019 } 1020 1020 1021 - static int ar0521_remove(struct i2c_client *client) 1021 + static void ar0521_remove(struct i2c_client *client) 1022 1022 { 1023 1023 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1024 1024 struct ar0521_dev *sensor = to_ar0521_dev(sd); ··· 1031 1031 ar0521_power_off(&client->dev); 1032 1032 pm_runtime_set_suspended(&client->dev); 1033 1033 mutex_destroy(&sensor->lock); 1034 - return 0; 1035 1034 } 1036 1035 1037 1036 static const struct dev_pm_ops ar0521_pm_ops = {
+1 -2
drivers/media/i2c/bt819.c
··· 446 446 return 0; 447 447 } 448 448 449 - static int bt819_remove(struct i2c_client *client) 449 + static void bt819_remove(struct i2c_client *client) 450 450 { 451 451 struct v4l2_subdev *sd = i2c_get_clientdata(client); 452 452 struct bt819 *decoder = to_bt819(sd); 453 453 454 454 v4l2_device_unregister_subdev(sd); 455 455 v4l2_ctrl_handler_free(&decoder->hdl); 456 - return 0; 457 456 } 458 457 459 458 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/bt856.c
··· 223 223 return 0; 224 224 } 225 225 226 - static int bt856_remove(struct i2c_client *client) 226 + static void bt856_remove(struct i2c_client *client) 227 227 { 228 228 struct v4l2_subdev *sd = i2c_get_clientdata(client); 229 229 230 230 v4l2_device_unregister_subdev(sd); 231 - return 0; 232 231 } 233 232 234 233 static const struct i2c_device_id bt856_id[] = {
+1 -2
drivers/media/i2c/bt866.c
··· 190 190 return 0; 191 191 } 192 192 193 - static int bt866_remove(struct i2c_client *client) 193 + static void bt866_remove(struct i2c_client *client) 194 194 { 195 195 struct v4l2_subdev *sd = i2c_get_clientdata(client); 196 196 197 197 v4l2_device_unregister_subdev(sd); 198 - return 0; 199 198 } 200 199 201 200 static const struct i2c_device_id bt866_id[] = {
+1 -3
drivers/media/i2c/ccs/ccs-core.c
··· 3665 3665 return rval; 3666 3666 } 3667 3667 3668 - static int ccs_remove(struct i2c_client *client) 3668 + static void ccs_remove(struct i2c_client *client) 3669 3669 { 3670 3670 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 3671 3671 struct ccs_sensor *sensor = to_ccs_sensor(subdev); ··· 3687 3687 kfree(sensor->ccs_limits); 3688 3688 kvfree(sensor->sdata.backing); 3689 3689 kvfree(sensor->mdata.backing); 3690 - 3691 - return 0; 3692 3690 } 3693 3691 3694 3692 static const struct ccs_device smia_device = {
+1 -2
drivers/media/i2c/cs3308.c
··· 99 99 100 100 /* ----------------------------------------------------------------------- */ 101 101 102 - static int cs3308_remove(struct i2c_client *client) 102 + static void cs3308_remove(struct i2c_client *client) 103 103 { 104 104 struct v4l2_subdev *sd = i2c_get_clientdata(client); 105 105 106 106 v4l2_device_unregister_subdev(sd); 107 107 kfree(sd); 108 - return 0; 109 108 } 110 109 111 110 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/cs5345.c
··· 178 178 179 179 /* ----------------------------------------------------------------------- */ 180 180 181 - static int cs5345_remove(struct i2c_client *client) 181 + static void cs5345_remove(struct i2c_client *client) 182 182 { 183 183 struct v4l2_subdev *sd = i2c_get_clientdata(client); 184 184 struct cs5345_state *state = to_state(sd); 185 185 186 186 v4l2_device_unregister_subdev(sd); 187 187 v4l2_ctrl_handler_free(&state->hdl); 188 - return 0; 189 188 } 190 189 191 190 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/cs53l32a.c
··· 190 190 return 0; 191 191 } 192 192 193 - static int cs53l32a_remove(struct i2c_client *client) 193 + static void cs53l32a_remove(struct i2c_client *client) 194 194 { 195 195 struct v4l2_subdev *sd = i2c_get_clientdata(client); 196 196 struct cs53l32a_state *state = to_state(sd); 197 197 198 198 v4l2_device_unregister_subdev(sd); 199 199 v4l2_ctrl_handler_free(&state->hdl); 200 - return 0; 201 200 } 202 201 203 202 static const struct i2c_device_id cs53l32a_id[] = {
+1 -2
drivers/media/i2c/cx25840/cx25840-core.c
··· 6026 6026 return 0; 6027 6027 } 6028 6028 6029 - static int cx25840_remove(struct i2c_client *client) 6029 + static void cx25840_remove(struct i2c_client *client) 6030 6030 { 6031 6031 struct v4l2_subdev *sd = i2c_get_clientdata(client); 6032 6032 struct cx25840_state *state = to_state(sd); ··· 6034 6034 cx25840_ir_remove(sd); 6035 6035 v4l2_device_unregister_subdev(sd); 6036 6036 v4l2_ctrl_handler_free(&state->hdl); 6037 - return 0; 6038 6037 } 6039 6038 6040 6039 static const struct i2c_device_id cx25840_id[] = {
+1 -3
drivers/media/i2c/dw9714.c
··· 190 190 return rval; 191 191 } 192 192 193 - static int dw9714_remove(struct i2c_client *client) 193 + static void dw9714_remove(struct i2c_client *client) 194 194 { 195 195 struct v4l2_subdev *sd = i2c_get_clientdata(client); 196 196 struct dw9714_device *dw9714_dev = sd_to_dw9714_vcm(sd); ··· 206 206 } 207 207 pm_runtime_set_suspended(&client->dev); 208 208 dw9714_subdev_cleanup(dw9714_dev); 209 - 210 - return 0; 211 209 } 212 210 213 211 /*
+1 -3
drivers/media/i2c/dw9768.c
··· 499 499 return ret; 500 500 } 501 501 502 - static int dw9768_remove(struct i2c_client *client) 502 + static void dw9768_remove(struct i2c_client *client) 503 503 { 504 504 struct v4l2_subdev *sd = i2c_get_clientdata(client); 505 505 struct dw9768 *dw9768 = sd_to_dw9768(sd); ··· 511 511 if (!pm_runtime_status_suspended(&client->dev)) 512 512 dw9768_runtime_suspend(&client->dev); 513 513 pm_runtime_set_suspended(&client->dev); 514 - 515 - return 0; 516 514 } 517 515 518 516 static const struct of_device_id dw9768_of_table[] = {
+1 -3
drivers/media/i2c/dw9807-vcm.c
··· 216 216 return rval; 217 217 } 218 218 219 - static int dw9807_remove(struct i2c_client *client) 219 + static void dw9807_remove(struct i2c_client *client) 220 220 { 221 221 struct v4l2_subdev *sd = i2c_get_clientdata(client); 222 222 struct dw9807_device *dw9807_dev = sd_to_dw9807_vcm(sd); ··· 224 224 pm_runtime_disable(&client->dev); 225 225 226 226 dw9807_subdev_cleanup(dw9807_dev); 227 - 228 - return 0; 229 227 } 230 228 231 229 /*
+1 -3
drivers/media/i2c/et8ek8/et8ek8_driver.c
··· 1460 1460 return ret; 1461 1461 } 1462 1462 1463 - static int __exit et8ek8_remove(struct i2c_client *client) 1463 + static void __exit et8ek8_remove(struct i2c_client *client) 1464 1464 { 1465 1465 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 1466 1466 struct et8ek8_sensor *sensor = to_et8ek8_sensor(subdev); ··· 1477 1477 v4l2_async_unregister_subdev(&sensor->subdev); 1478 1478 media_entity_cleanup(&sensor->subdev.entity); 1479 1479 mutex_destroy(&sensor->power_lock); 1480 - 1481 - return 0; 1482 1480 } 1483 1481 1484 1482 static const struct of_device_id et8ek8_of_table[] = {
+1 -3
drivers/media/i2c/hi556.c
··· 1101 1101 return ret; 1102 1102 } 1103 1103 1104 - static int hi556_remove(struct i2c_client *client) 1104 + static void hi556_remove(struct i2c_client *client) 1105 1105 { 1106 1106 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1107 1107 struct hi556 *hi556 = to_hi556(sd); ··· 1111 1111 v4l2_ctrl_handler_free(sd->ctrl_handler); 1112 1112 pm_runtime_disable(&client->dev); 1113 1113 mutex_destroy(&hi556->mutex); 1114 - 1115 - return 0; 1116 1114 } 1117 1115 1118 1116 static int hi556_probe(struct i2c_client *client)
+1 -3
drivers/media/i2c/hi846.c
··· 2143 2143 return ret; 2144 2144 } 2145 2145 2146 - static int hi846_remove(struct i2c_client *client) 2146 + static void hi846_remove(struct i2c_client *client) 2147 2147 { 2148 2148 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2149 2149 struct hi846 *hi846 = to_hi846(sd); ··· 2158 2158 pm_runtime_set_suspended(&client->dev); 2159 2159 2160 2160 mutex_destroy(&hi846->mutex); 2161 - 2162 - return 0; 2163 2161 } 2164 2162 2165 2163 static const struct dev_pm_ops hi846_pm_ops = {
+1 -3
drivers/media/i2c/hi847.c
··· 2903 2903 return ret; 2904 2904 } 2905 2905 2906 - static int hi847_remove(struct i2c_client *client) 2906 + static void hi847_remove(struct i2c_client *client) 2907 2907 { 2908 2908 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2909 2909 struct hi847 *hi847 = to_hi847(sd); ··· 2913 2913 v4l2_ctrl_handler_free(sd->ctrl_handler); 2914 2914 pm_runtime_disable(&client->dev); 2915 2915 mutex_destroy(&hi847->mutex); 2916 - 2917 - return 0; 2918 2916 } 2919 2917 2920 2918 static int hi847_probe(struct i2c_client *client)
+1 -3
drivers/media/i2c/imx208.c
··· 1061 1061 return ret; 1062 1062 } 1063 1063 1064 - static int imx208_remove(struct i2c_client *client) 1064 + static void imx208_remove(struct i2c_client *client) 1065 1065 { 1066 1066 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1067 1067 struct imx208 *imx208 = to_imx208(sd); ··· 1075 1075 pm_runtime_set_suspended(&client->dev); 1076 1076 1077 1077 mutex_destroy(&imx208->imx208_mx); 1078 - 1079 - return 0; 1080 1078 } 1081 1079 1082 1080 static const struct dev_pm_ops imx208_pm_ops = {
+1 -3
drivers/media/i2c/imx214.c
··· 1080 1080 return ret; 1081 1081 } 1082 1082 1083 - static int imx214_remove(struct i2c_client *client) 1083 + static void imx214_remove(struct i2c_client *client) 1084 1084 { 1085 1085 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1086 1086 struct imx214 *imx214 = to_imx214(sd); ··· 1093 1093 pm_runtime_set_suspended(&client->dev); 1094 1094 1095 1095 mutex_destroy(&imx214->mutex); 1096 - 1097 - return 0; 1098 1096 } 1099 1097 1100 1098 static const struct of_device_id imx214_of_match[] = {
+1 -3
drivers/media/i2c/imx219.c
··· 1562 1562 return ret; 1563 1563 } 1564 1564 1565 - static int imx219_remove(struct i2c_client *client) 1565 + static void imx219_remove(struct i2c_client *client) 1566 1566 { 1567 1567 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1568 1568 struct imx219 *imx219 = to_imx219(sd); ··· 1575 1575 if (!pm_runtime_status_suspended(&client->dev)) 1576 1576 imx219_power_off(&client->dev); 1577 1577 pm_runtime_set_suspended(&client->dev); 1578 - 1579 - return 0; 1580 1578 } 1581 1579 1582 1580 static const struct of_device_id imx219_dt_ids[] = {
+1 -3
drivers/media/i2c/imx258.c
··· 1338 1338 return ret; 1339 1339 } 1340 1340 1341 - static int imx258_remove(struct i2c_client *client) 1341 + static void imx258_remove(struct i2c_client *client) 1342 1342 { 1343 1343 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1344 1344 struct imx258 *imx258 = to_imx258(sd); ··· 1351 1351 if (!pm_runtime_status_suspended(&client->dev)) 1352 1352 imx258_power_off(&client->dev); 1353 1353 pm_runtime_set_suspended(&client->dev); 1354 - 1355 - return 0; 1356 1354 } 1357 1355 1358 1356 static const struct dev_pm_ops imx258_pm_ops = {
+1 -2
drivers/media/i2c/imx274.c
··· 2142 2142 return ret; 2143 2143 } 2144 2144 2145 - static int imx274_remove(struct i2c_client *client) 2145 + static void imx274_remove(struct i2c_client *client) 2146 2146 { 2147 2147 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2148 2148 struct stimx274 *imx274 = to_imx274(sd); ··· 2157 2157 2158 2158 media_entity_cleanup(&sd->entity); 2159 2159 mutex_destroy(&imx274->lock); 2160 - return 0; 2161 2160 } 2162 2161 2163 2162 static const struct dev_pm_ops imx274_pm_ops = {
+1 -3
drivers/media/i2c/imx290.c
··· 1119 1119 return ret; 1120 1120 } 1121 1121 1122 - static int imx290_remove(struct i2c_client *client) 1122 + static void imx290_remove(struct i2c_client *client) 1123 1123 { 1124 1124 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1125 1125 struct imx290 *imx290 = to_imx290(sd); ··· 1134 1134 if (!pm_runtime_status_suspended(imx290->dev)) 1135 1135 imx290_power_off(imx290->dev); 1136 1136 pm_runtime_set_suspended(imx290->dev); 1137 - 1138 - return 0; 1139 1137 } 1140 1138 1141 1139 static const struct of_device_id imx290_of_match[] = {
+1 -3
drivers/media/i2c/imx319.c
··· 2523 2523 return ret; 2524 2524 } 2525 2525 2526 - static int imx319_remove(struct i2c_client *client) 2526 + static void imx319_remove(struct i2c_client *client) 2527 2527 { 2528 2528 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2529 2529 struct imx319 *imx319 = to_imx319(sd); ··· 2536 2536 pm_runtime_set_suspended(&client->dev); 2537 2537 2538 2538 mutex_destroy(&imx319->mutex); 2539 - 2540 - return 0; 2541 2539 } 2542 2540 2543 2541 static const struct dev_pm_ops imx319_pm_ops = {
+1 -3
drivers/media/i2c/imx334.c
··· 1089 1089 * 1090 1090 * Return: 0 if successful, error code otherwise. 1091 1091 */ 1092 - static int imx334_remove(struct i2c_client *client) 1092 + static void imx334_remove(struct i2c_client *client) 1093 1093 { 1094 1094 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1095 1095 struct imx334 *imx334 = to_imx334(sd); ··· 1102 1102 pm_runtime_suspended(&client->dev); 1103 1103 1104 1104 mutex_destroy(&imx334->mutex); 1105 - 1106 - return 0; 1107 1105 } 1108 1106 1109 1107 static const struct dev_pm_ops imx334_pm_ops = {
+1 -3
drivers/media/i2c/imx335.c
··· 1083 1083 * 1084 1084 * Return: 0 if successful, error code otherwise. 1085 1085 */ 1086 - static int imx335_remove(struct i2c_client *client) 1086 + static void imx335_remove(struct i2c_client *client) 1087 1087 { 1088 1088 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1089 1089 struct imx335 *imx335 = to_imx335(sd); ··· 1098 1098 pm_runtime_set_suspended(&client->dev); 1099 1099 1100 1100 mutex_destroy(&imx335->mutex); 1101 - 1102 - return 0; 1103 1101 } 1104 1102 1105 1103 static const struct dev_pm_ops imx335_pm_ops = {
+1 -3
drivers/media/i2c/imx355.c
··· 1810 1810 return ret; 1811 1811 } 1812 1812 1813 - static int imx355_remove(struct i2c_client *client) 1813 + static void imx355_remove(struct i2c_client *client) 1814 1814 { 1815 1815 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1816 1816 struct imx355 *imx355 = to_imx355(sd); ··· 1823 1823 pm_runtime_set_suspended(&client->dev); 1824 1824 1825 1825 mutex_destroy(&imx355->mutex); 1826 - 1827 - return 0; 1828 1826 } 1829 1827 1830 1828 static const struct dev_pm_ops imx355_pm_ops = {
+1 -3
drivers/media/i2c/imx412.c
··· 1257 1257 * 1258 1258 * Return: 0 if successful, error code otherwise. 1259 1259 */ 1260 - static int imx412_remove(struct i2c_client *client) 1260 + static void imx412_remove(struct i2c_client *client) 1261 1261 { 1262 1262 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1263 1263 struct imx412 *imx412 = to_imx412(sd); ··· 1272 1272 pm_runtime_set_suspended(&client->dev); 1273 1273 1274 1274 mutex_destroy(&imx412->mutex); 1275 - 1276 - return 0; 1277 1275 } 1278 1276 1279 1277 static const struct dev_pm_ops imx412_pm_ops = {
+1 -3
drivers/media/i2c/ir-kbd-i2c.c
··· 915 915 return err; 916 916 } 917 917 918 - static int ir_remove(struct i2c_client *client) 918 + static void ir_remove(struct i2c_client *client) 919 919 { 920 920 struct IR_i2c *ir = i2c_get_clientdata(client); 921 921 ··· 924 924 i2c_unregister_device(ir->tx_c); 925 925 926 926 rc_unregister_device(ir->rc); 927 - 928 - return 0; 929 927 } 930 928 931 929 static const struct i2c_device_id ir_kbd_id[] = {
+1 -3
drivers/media/i2c/isl7998x.c
··· 1544 1544 return ret; 1545 1545 } 1546 1546 1547 - static int isl7998x_remove(struct i2c_client *client) 1547 + static void isl7998x_remove(struct i2c_client *client) 1548 1548 { 1549 1549 struct isl7998x *isl7998x = i2c_to_isl7998x(client); 1550 1550 ··· 1552 1552 v4l2_async_unregister_subdev(&isl7998x->subdev); 1553 1553 isl7998x_remove_controls(isl7998x); 1554 1554 media_entity_cleanup(&isl7998x->subdev.entity); 1555 - 1556 - return 0; 1557 1555 } 1558 1556 1559 1557 static const struct of_device_id isl7998x_of_match[] = {
+1 -2
drivers/media/i2c/ks0127.c
··· 675 675 return 0; 676 676 } 677 677 678 - static int ks0127_remove(struct i2c_client *client) 678 + static void ks0127_remove(struct i2c_client *client) 679 679 { 680 680 struct v4l2_subdev *sd = i2c_get_clientdata(client); 681 681 682 682 v4l2_device_unregister_subdev(sd); 683 683 ks0127_write(sd, KS_OFMTA, 0x20); /* tristate */ 684 684 ks0127_write(sd, KS_CMDA, 0x2c | 0x80); /* power down */ 685 - return 0; 686 685 } 687 686 688 687 static const struct i2c_device_id ks0127_id[] = {
+1 -3
drivers/media/i2c/lm3560.c
··· 443 443 return 0; 444 444 } 445 445 446 - static int lm3560_remove(struct i2c_client *client) 446 + static void lm3560_remove(struct i2c_client *client) 447 447 { 448 448 struct lm3560_flash *flash = i2c_get_clientdata(client); 449 449 unsigned int i; ··· 453 453 v4l2_ctrl_handler_free(&flash->ctrls_led[i]); 454 454 media_entity_cleanup(&flash->subdev_led[i].entity); 455 455 } 456 - 457 - return 0; 458 456 } 459 457 460 458 static const struct i2c_device_id lm3560_id_table[] = {
+1 -3
drivers/media/i2c/lm3646.c
··· 377 377 return 0; 378 378 } 379 379 380 - static int lm3646_remove(struct i2c_client *client) 380 + static void lm3646_remove(struct i2c_client *client) 381 381 { 382 382 struct lm3646_flash *flash = i2c_get_clientdata(client); 383 383 384 384 v4l2_device_unregister_subdev(&flash->subdev_led); 385 385 v4l2_ctrl_handler_free(&flash->ctrls_led); 386 386 media_entity_cleanup(&flash->subdev_led.entity); 387 - 388 - return 0; 389 387 } 390 388 391 389 static const struct i2c_device_id lm3646_id_table[] = {
+1 -2
drivers/media/i2c/m52790.c
··· 154 154 return 0; 155 155 } 156 156 157 - static int m52790_remove(struct i2c_client *client) 157 + static void m52790_remove(struct i2c_client *client) 158 158 { 159 159 struct v4l2_subdev *sd = i2c_get_clientdata(client); 160 160 161 161 v4l2_device_unregister_subdev(sd); 162 - return 0; 163 162 } 164 163 165 164 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/m5mols/m5mols_core.c
··· 1020 1020 return ret; 1021 1021 } 1022 1022 1023 - static int m5mols_remove(struct i2c_client *client) 1023 + static void m5mols_remove(struct i2c_client *client) 1024 1024 { 1025 1025 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1026 1026 1027 1027 v4l2_device_unregister_subdev(sd); 1028 1028 v4l2_ctrl_handler_free(sd->ctrl_handler); 1029 1029 media_entity_cleanup(&sd->entity); 1030 - 1031 - return 0; 1032 1030 } 1033 1031 1034 1032 static const struct i2c_device_id m5mols_id[] = {
+1 -3
drivers/media/i2c/max2175.c
··· 1403 1403 return ret; 1404 1404 } 1405 1405 1406 - static int max2175_remove(struct i2c_client *client) 1406 + static void max2175_remove(struct i2c_client *client) 1407 1407 { 1408 1408 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1409 1409 struct max2175 *ctx = max2175_from_sd(sd); 1410 1410 1411 1411 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); 1412 1412 v4l2_async_unregister_subdev(sd); 1413 - 1414 - return 0; 1415 1413 } 1416 1414 1417 1415 static const struct i2c_device_id max2175_id[] = {
+1 -3
drivers/media/i2c/max9286.c
··· 1378 1378 return ret; 1379 1379 } 1380 1380 1381 - static int max9286_remove(struct i2c_client *client) 1381 + static void max9286_remove(struct i2c_client *client) 1382 1382 { 1383 1383 struct max9286_priv *priv = sd_to_max9286(i2c_get_clientdata(client)); 1384 1384 ··· 1391 1391 gpiod_set_value_cansleep(priv->gpiod_pwdn, 0); 1392 1392 1393 1393 max9286_cleanup_dt(priv); 1394 - 1395 - return 0; 1396 1394 } 1397 1395 1398 1396 static const struct of_device_id max9286_dt_ids[] = {
+1 -3
drivers/media/i2c/ml86v7667.c
··· 415 415 return ret; 416 416 } 417 417 418 - static int ml86v7667_remove(struct i2c_client *client) 418 + static void ml86v7667_remove(struct i2c_client *client) 419 419 { 420 420 struct v4l2_subdev *sd = i2c_get_clientdata(client); 421 421 struct ml86v7667_priv *priv = to_ml86v7667(sd); 422 422 423 423 v4l2_ctrl_handler_free(&priv->hdl); 424 424 v4l2_device_unregister_subdev(&priv->sd); 425 - 426 - return 0; 427 425 } 428 426 429 427 static const struct i2c_device_id ml86v7667_id[] = {
+1 -2
drivers/media/i2c/msp3400-driver.c
··· 859 859 return 0; 860 860 } 861 861 862 - static int msp_remove(struct i2c_client *client) 862 + static void msp_remove(struct i2c_client *client) 863 863 { 864 864 struct msp_state *state = to_state(i2c_get_clientdata(client)); 865 865 ··· 872 872 msp_reset(client); 873 873 874 874 v4l2_ctrl_handler_free(&state->hdl); 875 - return 0; 876 875 } 877 876 878 877 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/mt9m001.c
··· 833 833 return ret; 834 834 } 835 835 836 - static int mt9m001_remove(struct i2c_client *client) 836 + static void mt9m001_remove(struct i2c_client *client) 837 837 { 838 838 struct mt9m001 *mt9m001 = to_mt9m001(client); 839 839 ··· 853 853 854 854 v4l2_ctrl_handler_free(&mt9m001->hdl); 855 855 mutex_destroy(&mt9m001->mutex); 856 - 857 - return 0; 858 856 } 859 857 860 858 static const struct i2c_device_id mt9m001_id[] = {
+1 -2
drivers/media/i2c/mt9m032.c
··· 858 858 return ret; 859 859 } 860 860 861 - static int mt9m032_remove(struct i2c_client *client) 861 + static void mt9m032_remove(struct i2c_client *client) 862 862 { 863 863 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 864 864 struct mt9m032 *sensor = to_mt9m032(subdev); ··· 867 867 v4l2_ctrl_handler_free(&sensor->ctrls); 868 868 media_entity_cleanup(&subdev->entity); 869 869 mutex_destroy(&sensor->lock); 870 - return 0; 871 870 } 872 871 873 872 static const struct i2c_device_id mt9m032_id_table[] = {
+1 -3
drivers/media/i2c/mt9m111.c
··· 1359 1359 return ret; 1360 1360 } 1361 1361 1362 - static int mt9m111_remove(struct i2c_client *client) 1362 + static void mt9m111_remove(struct i2c_client *client) 1363 1363 { 1364 1364 struct mt9m111 *mt9m111 = to_mt9m111(client); 1365 1365 1366 1366 v4l2_async_unregister_subdev(&mt9m111->subdev); 1367 1367 media_entity_cleanup(&mt9m111->subdev.entity); 1368 1368 v4l2_ctrl_handler_free(&mt9m111->hdl); 1369 - 1370 - return 0; 1371 1369 } 1372 1370 static const struct of_device_id mt9m111_of_match[] = { 1373 1371 { .compatible = "micron,mt9m111", },
+1 -3
drivers/media/i2c/mt9p031.c
··· 1209 1209 return ret; 1210 1210 } 1211 1211 1212 - static int mt9p031_remove(struct i2c_client *client) 1212 + static void mt9p031_remove(struct i2c_client *client) 1213 1213 { 1214 1214 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 1215 1215 struct mt9p031 *mt9p031 = to_mt9p031(subdev); ··· 1218 1218 v4l2_async_unregister_subdev(subdev); 1219 1219 media_entity_cleanup(&subdev->entity); 1220 1220 mutex_destroy(&mt9p031->power_lock); 1221 - 1222 - return 0; 1223 1221 } 1224 1222 1225 1223 static const struct i2c_device_id mt9p031_id[] = {
+1 -2
drivers/media/i2c/mt9t001.c
··· 961 961 return ret; 962 962 } 963 963 964 - static int mt9t001_remove(struct i2c_client *client) 964 + static void mt9t001_remove(struct i2c_client *client) 965 965 { 966 966 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 967 967 struct mt9t001 *mt9t001 = to_mt9t001(subdev); ··· 969 969 v4l2_ctrl_handler_free(&mt9t001->ctrls); 970 970 v4l2_device_unregister_subdev(subdev); 971 971 media_entity_cleanup(&subdev->entity); 972 - return 0; 973 972 } 974 973 975 974 static const struct i2c_device_id mt9t001_id[] = {
+1 -3
drivers/media/i2c/mt9t112.c
··· 1102 1102 return v4l2_async_register_subdev(&priv->subdev); 1103 1103 } 1104 1104 1105 - static int mt9t112_remove(struct i2c_client *client) 1105 + static void mt9t112_remove(struct i2c_client *client) 1106 1106 { 1107 1107 struct mt9t112_priv *priv = to_mt9t112(client); 1108 1108 1109 1109 clk_disable_unprepare(priv->clk); 1110 1110 v4l2_async_unregister_subdev(&priv->subdev); 1111 - 1112 - return 0; 1113 1111 } 1114 1112 1115 1113 static const struct i2c_device_id mt9t112_id[] = {
+1 -3
drivers/media/i2c/mt9v011.c
··· 561 561 return 0; 562 562 } 563 563 564 - static int mt9v011_remove(struct i2c_client *c) 564 + static void mt9v011_remove(struct i2c_client *c) 565 565 { 566 566 struct v4l2_subdev *sd = i2c_get_clientdata(c); 567 567 struct mt9v011 *core = to_mt9v011(sd); ··· 572 572 573 573 v4l2_device_unregister_subdev(sd); 574 574 v4l2_ctrl_handler_free(&core->ctrls); 575 - 576 - return 0; 577 575 } 578 576 579 577 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/mt9v032.c
··· 1192 1192 return ret; 1193 1193 } 1194 1194 1195 - static int mt9v032_remove(struct i2c_client *client) 1195 + static void mt9v032_remove(struct i2c_client *client) 1196 1196 { 1197 1197 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 1198 1198 struct mt9v032 *mt9v032 = to_mt9v032(subdev); ··· 1200 1200 v4l2_async_unregister_subdev(subdev); 1201 1201 v4l2_ctrl_handler_free(&mt9v032->ctrls); 1202 1202 media_entity_cleanup(&subdev->entity); 1203 - 1204 - return 0; 1205 1203 } 1206 1204 1207 1205 static const struct mt9v032_model_data mt9v032_model_data[] = {
+1 -3
drivers/media/i2c/mt9v111.c
··· 1238 1238 return ret; 1239 1239 } 1240 1240 1241 - static int mt9v111_remove(struct i2c_client *client) 1241 + static void mt9v111_remove(struct i2c_client *client) 1242 1242 { 1243 1243 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1244 1244 struct mt9v111_dev *mt9v111 = sd_to_mt9v111(sd); ··· 1253 1253 1254 1254 mutex_destroy(&mt9v111->pwr_mutex); 1255 1255 mutex_destroy(&mt9v111->stream_mutex); 1256 - 1257 - return 0; 1258 1256 } 1259 1257 1260 1258 static const struct of_device_id mt9v111_of_match[] = {
+1 -3
drivers/media/i2c/noon010pc30.c
··· 789 789 return ret; 790 790 } 791 791 792 - static int noon010_remove(struct i2c_client *client) 792 + static void noon010_remove(struct i2c_client *client) 793 793 { 794 794 struct v4l2_subdev *sd = i2c_get_clientdata(client); 795 795 struct noon010_info *info = to_noon010(sd); ··· 797 797 v4l2_device_unregister_subdev(sd); 798 798 v4l2_ctrl_handler_free(&info->hdl); 799 799 media_entity_cleanup(&sd->entity); 800 - 801 - return 0; 802 800 } 803 801 804 802 static const struct i2c_device_id noon010_id[] = {
+1 -3
drivers/media/i2c/og01a1b.c
··· 1015 1015 return ret; 1016 1016 } 1017 1017 1018 - static int og01a1b_remove(struct i2c_client *client) 1018 + static void og01a1b_remove(struct i2c_client *client) 1019 1019 { 1020 1020 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1021 1021 struct og01a1b *og01a1b = to_og01a1b(sd); ··· 1025 1025 v4l2_ctrl_handler_free(sd->ctrl_handler); 1026 1026 pm_runtime_disable(&client->dev); 1027 1027 mutex_destroy(&og01a1b->mutex); 1028 - 1029 - return 0; 1030 1028 } 1031 1029 1032 1030 static int og01a1b_probe(struct i2c_client *client)
+1 -3
drivers/media/i2c/ov02a10.c
··· 975 975 return ret; 976 976 } 977 977 978 - static int ov02a10_remove(struct i2c_client *client) 978 + static void ov02a10_remove(struct i2c_client *client) 979 979 { 980 980 struct v4l2_subdev *sd = i2c_get_clientdata(client); 981 981 struct ov02a10 *ov02a10 = to_ov02a10(sd); ··· 988 988 ov02a10_power_off(&client->dev); 989 989 pm_runtime_set_suspended(&client->dev); 990 990 mutex_destroy(&ov02a10->mutex); 991 - 992 - return 0; 993 991 } 994 992 995 993 static const struct of_device_id ov02a10_of_match[] = {
+1 -3
drivers/media/i2c/ov08d10.c
··· 1415 1415 return ret; 1416 1416 } 1417 1417 1418 - static int ov08d10_remove(struct i2c_client *client) 1418 + static void ov08d10_remove(struct i2c_client *client) 1419 1419 { 1420 1420 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1421 1421 struct ov08d10 *ov08d10 = to_ov08d10(sd); ··· 1425 1425 v4l2_ctrl_handler_free(sd->ctrl_handler); 1426 1426 pm_runtime_disable(&client->dev); 1427 1427 mutex_destroy(&ov08d10->mutex); 1428 - 1429 - return 0; 1430 1428 } 1431 1429 1432 1430 static int ov08d10_probe(struct i2c_client *client)
+1 -3
drivers/media/i2c/ov13858.c
··· 1769 1769 return ret; 1770 1770 } 1771 1771 1772 - static int ov13858_remove(struct i2c_client *client) 1772 + static void ov13858_remove(struct i2c_client *client) 1773 1773 { 1774 1774 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1775 1775 struct ov13858 *ov13858 = to_ov13858(sd); ··· 1779 1779 ov13858_free_controls(ov13858); 1780 1780 1781 1781 pm_runtime_disable(&client->dev); 1782 - 1783 - return 0; 1784 1782 } 1785 1783 1786 1784 static const struct i2c_device_id ov13858_id_table[] = {
+1 -3
drivers/media/i2c/ov13b10.c
··· 1447 1447 return ret; 1448 1448 } 1449 1449 1450 - static int ov13b10_remove(struct i2c_client *client) 1450 + static void ov13b10_remove(struct i2c_client *client) 1451 1451 { 1452 1452 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1453 1453 struct ov13b10 *ov13b = to_ov13b10(sd); ··· 1457 1457 ov13b10_free_controls(ov13b); 1458 1458 1459 1459 pm_runtime_disable(&client->dev); 1460 - 1461 - return 0; 1462 1460 } 1463 1461 1464 1462 static const struct dev_pm_ops ov13b10_pm_ops = {
+1 -2
drivers/media/i2c/ov2640.c
··· 1271 1271 return ret; 1272 1272 } 1273 1273 1274 - static int ov2640_remove(struct i2c_client *client) 1274 + static void ov2640_remove(struct i2c_client *client) 1275 1275 { 1276 1276 struct ov2640_priv *priv = to_ov2640(client); 1277 1277 ··· 1281 1281 media_entity_cleanup(&priv->subdev.entity); 1282 1282 v4l2_device_unregister_subdev(&priv->subdev); 1283 1283 clk_disable_unprepare(priv->clk); 1284 - return 0; 1285 1284 } 1286 1285 1287 1286 static const struct i2c_device_id ov2640_id[] = {
+1 -3
drivers/media/i2c/ov2659.c
··· 1544 1544 return ret; 1545 1545 } 1546 1546 1547 - static int ov2659_remove(struct i2c_client *client) 1547 + static void ov2659_remove(struct i2c_client *client) 1548 1548 { 1549 1549 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1550 1550 struct ov2659 *ov2659 = to_ov2659(sd); ··· 1558 1558 if (!pm_runtime_status_suspended(&client->dev)) 1559 1559 ov2659_power_off(&client->dev); 1560 1560 pm_runtime_set_suspended(&client->dev); 1561 - 1562 - return 0; 1563 1561 } 1564 1562 1565 1563 static const struct dev_pm_ops ov2659_pm_ops = {
+1 -3
drivers/media/i2c/ov2680.c
··· 1097 1097 return ret; 1098 1098 } 1099 1099 1100 - static int ov2680_remove(struct i2c_client *client) 1100 + static void ov2680_remove(struct i2c_client *client) 1101 1101 { 1102 1102 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1103 1103 struct ov2680_dev *sensor = to_ov2680_dev(sd); ··· 1106 1106 mutex_destroy(&sensor->lock); 1107 1107 media_entity_cleanup(&sensor->sd.entity); 1108 1108 v4l2_ctrl_handler_free(&sensor->ctrls.handler); 1109 - 1110 - return 0; 1111 1109 } 1112 1110 1113 1111 static int __maybe_unused ov2680_suspend(struct device *dev)
+1 -3
drivers/media/i2c/ov2685.c
··· 798 798 return ret; 799 799 } 800 800 801 - static int ov2685_remove(struct i2c_client *client) 801 + static void ov2685_remove(struct i2c_client *client) 802 802 { 803 803 struct v4l2_subdev *sd = i2c_get_clientdata(client); 804 804 struct ov2685 *ov2685 = to_ov2685(sd); ··· 814 814 if (!pm_runtime_status_suspended(&client->dev)) 815 815 __ov2685_power_off(ov2685); 816 816 pm_runtime_set_suspended(&client->dev); 817 - 818 - return 0; 819 817 } 820 818 821 819 #if IS_ENABLED(CONFIG_OF)
+1 -3
drivers/media/i2c/ov2740.c
··· 1053 1053 return ret; 1054 1054 } 1055 1055 1056 - static int ov2740_remove(struct i2c_client *client) 1056 + static void ov2740_remove(struct i2c_client *client) 1057 1057 { 1058 1058 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1059 1059 struct ov2740 *ov2740 = to_ov2740(sd); ··· 1063 1063 v4l2_ctrl_handler_free(sd->ctrl_handler); 1064 1064 pm_runtime_disable(&client->dev); 1065 1065 mutex_destroy(&ov2740->mutex); 1066 - 1067 - return 0; 1068 1066 } 1069 1067 1070 1068 static int ov2740_nvmem_read(void *priv, unsigned int off, void *val,
+1 -3
drivers/media/i2c/ov5640.c
··· 3906 3906 return ret; 3907 3907 } 3908 3908 3909 - static int ov5640_remove(struct i2c_client *client) 3909 + static void ov5640_remove(struct i2c_client *client) 3910 3910 { 3911 3911 struct v4l2_subdev *sd = i2c_get_clientdata(client); 3912 3912 struct ov5640_dev *sensor = to_ov5640_dev(sd); ··· 3915 3915 media_entity_cleanup(&sensor->sd.entity); 3916 3916 v4l2_ctrl_handler_free(&sensor->ctrls.handler); 3917 3917 mutex_destroy(&sensor->lock); 3918 - 3919 - return 0; 3920 3918 } 3921 3919 3922 3920 static const struct i2c_device_id ov5640_id[] = {
+1 -3
drivers/media/i2c/ov5645.c
··· 1256 1256 return ret; 1257 1257 } 1258 1258 1259 - static int ov5645_remove(struct i2c_client *client) 1259 + static void ov5645_remove(struct i2c_client *client) 1260 1260 { 1261 1261 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1262 1262 struct ov5645 *ov5645 = to_ov5645(sd); ··· 1265 1265 media_entity_cleanup(&ov5645->sd.entity); 1266 1266 v4l2_ctrl_handler_free(&ov5645->ctrls); 1267 1267 mutex_destroy(&ov5645->power_lock); 1268 - 1269 - return 0; 1270 1268 } 1271 1269 1272 1270 static const struct i2c_device_id ov5645_id[] = {
+1 -3
drivers/media/i2c/ov5647.c
··· 1448 1448 return ret; 1449 1449 } 1450 1450 1451 - static int ov5647_remove(struct i2c_client *client) 1451 + static void ov5647_remove(struct i2c_client *client) 1452 1452 { 1453 1453 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1454 1454 struct ov5647 *sensor = to_sensor(sd); ··· 1459 1459 v4l2_device_unregister_subdev(sd); 1460 1460 pm_runtime_disable(&client->dev); 1461 1461 mutex_destroy(&sensor->lock); 1462 - 1463 - return 0; 1464 1462 } 1465 1463 1466 1464 static const struct dev_pm_ops ov5647_pm_ops = {
+1 -3
drivers/media/i2c/ov5648.c
··· 2587 2587 return ret; 2588 2588 } 2589 2589 2590 - static int ov5648_remove(struct i2c_client *client) 2590 + static void ov5648_remove(struct i2c_client *client) 2591 2591 { 2592 2592 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 2593 2593 struct ov5648_sensor *sensor = ov5648_subdev_sensor(subdev); ··· 2597 2597 v4l2_ctrl_handler_free(&sensor->ctrls.handler); 2598 2598 mutex_destroy(&sensor->mutex); 2599 2599 media_entity_cleanup(&subdev->entity); 2600 - 2601 - return 0; 2602 2600 } 2603 2601 2604 2602 static const struct dev_pm_ops ov5648_pm_ops = {
+1 -3
drivers/media/i2c/ov5670.c
··· 2557 2557 return ret; 2558 2558 } 2559 2559 2560 - static int ov5670_remove(struct i2c_client *client) 2560 + static void ov5670_remove(struct i2c_client *client) 2561 2561 { 2562 2562 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2563 2563 struct ov5670 *ov5670 = to_ov5670(sd); ··· 2568 2568 mutex_destroy(&ov5670->mutex); 2569 2569 2570 2570 pm_runtime_disable(&client->dev); 2571 - 2572 - return 0; 2573 2571 } 2574 2572 2575 2573 static const struct dev_pm_ops ov5670_pm_ops = {
+1 -3
drivers/media/i2c/ov5675.c
··· 1175 1175 return ret; 1176 1176 } 1177 1177 1178 - static int ov5675_remove(struct i2c_client *client) 1178 + static void ov5675_remove(struct i2c_client *client) 1179 1179 { 1180 1180 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1181 1181 struct ov5675 *ov5675 = to_ov5675(sd); ··· 1185 1185 v4l2_ctrl_handler_free(sd->ctrl_handler); 1186 1186 pm_runtime_disable(&client->dev); 1187 1187 mutex_destroy(&ov5675->mutex); 1188 - 1189 - return 0; 1190 1188 } 1191 1189 1192 1190 static int ov5675_probe(struct i2c_client *client)
+1 -3
drivers/media/i2c/ov5693.c
··· 1501 1501 return ret; 1502 1502 } 1503 1503 1504 - static int ov5693_remove(struct i2c_client *client) 1504 + static void ov5693_remove(struct i2c_client *client) 1505 1505 { 1506 1506 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1507 1507 struct ov5693_device *ov5693 = to_ov5693_sensor(sd); ··· 1519 1519 if (!pm_runtime_status_suspended(&client->dev)) 1520 1520 ov5693_sensor_powerdown(ov5693); 1521 1521 pm_runtime_set_suspended(&client->dev); 1522 - 1523 - return 0; 1524 1522 } 1525 1523 1526 1524 static const struct dev_pm_ops ov5693_pm_ops = {
+1 -3
drivers/media/i2c/ov5695.c
··· 1361 1361 return ret; 1362 1362 } 1363 1363 1364 - static int ov5695_remove(struct i2c_client *client) 1364 + static void ov5695_remove(struct i2c_client *client) 1365 1365 { 1366 1366 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1367 1367 struct ov5695 *ov5695 = to_ov5695(sd); ··· 1377 1377 if (!pm_runtime_status_suspended(&client->dev)) 1378 1378 __ov5695_power_off(ov5695); 1379 1379 pm_runtime_set_suspended(&client->dev); 1380 - 1381 - return 0; 1382 1380 } 1383 1381 1384 1382 #if IS_ENABLED(CONFIG_OF)
+1 -2
drivers/media/i2c/ov6650.c
··· 1096 1096 return ret; 1097 1097 } 1098 1098 1099 - static int ov6650_remove(struct i2c_client *client) 1099 + static void ov6650_remove(struct i2c_client *client) 1100 1100 { 1101 1101 struct ov6650 *priv = to_ov6650(client); 1102 1102 1103 1103 v4l2_async_unregister_subdev(&priv->subdev); 1104 1104 v4l2_ctrl_handler_free(&priv->hdl); 1105 - return 0; 1106 1105 } 1107 1106 1108 1107 static const struct i2c_device_id ov6650_id[] = {
+1 -3
drivers/media/i2c/ov7251.c
··· 1767 1767 return ret; 1768 1768 } 1769 1769 1770 - static int ov7251_remove(struct i2c_client *client) 1770 + static void ov7251_remove(struct i2c_client *client) 1771 1771 { 1772 1772 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1773 1773 struct ov7251 *ov7251 = to_ov7251(sd); ··· 1781 1781 if (!pm_runtime_status_suspended(ov7251->dev)) 1782 1782 ov7251_set_power_off(ov7251->dev); 1783 1783 pm_runtime_set_suspended(ov7251->dev); 1784 - 1785 - return 0; 1786 1784 } 1787 1785 1788 1786 static const struct dev_pm_ops ov7251_pm_ops = {
+1 -3
drivers/media/i2c/ov7640.c
··· 70 70 } 71 71 72 72 73 - static int ov7640_remove(struct i2c_client *client) 73 + static void ov7640_remove(struct i2c_client *client) 74 74 { 75 75 struct v4l2_subdev *sd = i2c_get_clientdata(client); 76 76 77 77 v4l2_device_unregister_subdev(sd); 78 - 79 - return 0; 80 78 } 81 79 82 80 static const struct i2c_device_id ov7640_id[] = {
+1 -2
drivers/media/i2c/ov7670.c
··· 2009 2009 return ret; 2010 2010 } 2011 2011 2012 - static int ov7670_remove(struct i2c_client *client) 2012 + static void ov7670_remove(struct i2c_client *client) 2013 2013 { 2014 2014 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2015 2015 struct ov7670_info *info = to_state(sd); ··· 2017 2017 v4l2_async_unregister_subdev(sd); 2018 2018 v4l2_ctrl_handler_free(&info->hdl); 2019 2019 media_entity_cleanup(&info->sd.entity); 2020 - return 0; 2021 2020 } 2022 2021 2023 2022 static const struct i2c_device_id ov7670_id[] = {
+1 -3
drivers/media/i2c/ov772x.c
··· 1521 1521 return ret; 1522 1522 } 1523 1523 1524 - static int ov772x_remove(struct i2c_client *client) 1524 + static void ov772x_remove(struct i2c_client *client) 1525 1525 { 1526 1526 struct ov772x_priv *priv = to_ov772x(i2c_get_clientdata(client)); 1527 1527 ··· 1532 1532 v4l2_async_unregister_subdev(&priv->subdev); 1533 1533 v4l2_ctrl_handler_free(&priv->hdl); 1534 1534 mutex_destroy(&priv->lock); 1535 - 1536 - return 0; 1537 1535 } 1538 1536 1539 1537 static const struct i2c_device_id ov772x_id[] = {
+1 -2
drivers/media/i2c/ov7740.c
··· 1153 1153 return ret; 1154 1154 } 1155 1155 1156 - static int ov7740_remove(struct i2c_client *client) 1156 + static void ov7740_remove(struct i2c_client *client) 1157 1157 { 1158 1158 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1159 1159 struct ov7740 *ov7740 = container_of(sd, struct ov7740, subdev); ··· 1170 1170 pm_runtime_put_noidle(&client->dev); 1171 1171 1172 1172 ov7740_set_power(ov7740, 0); 1173 - return 0; 1174 1173 } 1175 1174 1176 1175 static int __maybe_unused ov7740_runtime_suspend(struct device *dev)
+1 -3
drivers/media/i2c/ov8856.c
··· 2440 2440 return ret; 2441 2441 } 2442 2442 2443 - static int ov8856_remove(struct i2c_client *client) 2443 + static void ov8856_remove(struct i2c_client *client) 2444 2444 { 2445 2445 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2446 2446 struct ov8856 *ov8856 = to_ov8856(sd); ··· 2452 2452 mutex_destroy(&ov8856->mutex); 2453 2453 2454 2454 __ov8856_power_off(ov8856); 2455 - 2456 - return 0; 2457 2455 } 2458 2456 2459 2457 static int ov8856_probe(struct i2c_client *client)
+1 -3
drivers/media/i2c/ov8865.c
··· 3119 3119 return ret; 3120 3120 } 3121 3121 3122 - static int ov8865_remove(struct i2c_client *client) 3122 + static void ov8865_remove(struct i2c_client *client) 3123 3123 { 3124 3124 struct v4l2_subdev *subdev = i2c_get_clientdata(client); 3125 3125 struct ov8865_sensor *sensor = ov8865_subdev_sensor(subdev); ··· 3131 3131 media_entity_cleanup(&subdev->entity); 3132 3132 3133 3133 v4l2_fwnode_endpoint_free(&sensor->endpoint); 3134 - 3135 - return 0; 3136 3134 } 3137 3135 3138 3136 static const struct dev_pm_ops ov8865_pm_ops = {
+1 -3
drivers/media/i2c/ov9282.c
··· 1091 1091 * 1092 1092 * Return: 0 if successful, error code otherwise. 1093 1093 */ 1094 - static int ov9282_remove(struct i2c_client *client) 1094 + static void ov9282_remove(struct i2c_client *client) 1095 1095 { 1096 1096 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1097 1097 struct ov9282 *ov9282 = to_ov9282(sd); ··· 1106 1106 pm_runtime_set_suspended(&client->dev); 1107 1107 1108 1108 mutex_destroy(&ov9282->mutex); 1109 - 1110 - return 0; 1111 1109 } 1112 1110 1113 1111 static const struct dev_pm_ops ov9282_pm_ops = {
+1 -3
drivers/media/i2c/ov9640.c
··· 744 744 return ret; 745 745 } 746 746 747 - static int ov9640_remove(struct i2c_client *client) 747 + static void ov9640_remove(struct i2c_client *client) 748 748 { 749 749 struct v4l2_subdev *sd = i2c_get_clientdata(client); 750 750 struct ov9640_priv *priv = to_ov9640_sensor(sd); 751 751 752 752 v4l2_async_unregister_subdev(&priv->subdev); 753 753 v4l2_ctrl_handler_free(&priv->hdl); 754 - 755 - return 0; 756 754 } 757 755 758 756 static const struct i2c_device_id ov9640_id[] = {
+1 -3
drivers/media/i2c/ov9650.c
··· 1584 1584 return ret; 1585 1585 } 1586 1586 1587 - static int ov965x_remove(struct i2c_client *client) 1587 + static void ov965x_remove(struct i2c_client *client) 1588 1588 { 1589 1589 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1590 1590 struct ov965x *ov965x = to_ov965x(sd); ··· 1593 1593 v4l2_ctrl_handler_free(sd->ctrl_handler); 1594 1594 media_entity_cleanup(&sd->entity); 1595 1595 mutex_destroy(&ov965x->lock); 1596 - 1597 - return 0; 1598 1596 } 1599 1597 1600 1598 static const struct i2c_device_id ov965x_id[] = {
+1 -3
drivers/media/i2c/ov9734.c
··· 930 930 return ret; 931 931 } 932 932 933 - static int ov9734_remove(struct i2c_client *client) 933 + static void ov9734_remove(struct i2c_client *client) 934 934 { 935 935 struct v4l2_subdev *sd = i2c_get_clientdata(client); 936 936 struct ov9734 *ov9734 = to_ov9734(sd); ··· 940 940 v4l2_ctrl_handler_free(sd->ctrl_handler); 941 941 pm_runtime_disable(&client->dev); 942 942 mutex_destroy(&ov9734->mutex); 943 - 944 - return 0; 945 943 } 946 944 947 945 static int ov9734_probe(struct i2c_client *client)
+1 -3
drivers/media/i2c/rdacm20.c
··· 646 646 return ret; 647 647 } 648 648 649 - static int rdacm20_remove(struct i2c_client *client) 649 + static void rdacm20_remove(struct i2c_client *client) 650 650 { 651 651 struct rdacm20_device *dev = i2c_to_rdacm20(client); 652 652 ··· 655 655 v4l2_ctrl_handler_free(&dev->ctrls); 656 656 media_entity_cleanup(&dev->sd.entity); 657 657 i2c_unregister_device(dev->sensor); 658 - 659 - return 0; 660 658 } 661 659 662 660 static void rdacm20_shutdown(struct i2c_client *client)
+1 -3
drivers/media/i2c/rdacm21.c
··· 614 614 return ret; 615 615 } 616 616 617 - static int rdacm21_remove(struct i2c_client *client) 617 + static void rdacm21_remove(struct i2c_client *client) 618 618 { 619 619 struct rdacm21_device *dev = sd_to_rdacm21(i2c_get_clientdata(client)); 620 620 ··· 622 622 v4l2_ctrl_handler_free(&dev->ctrls); 623 623 i2c_unregister_device(dev->isp); 624 624 fwnode_handle_put(dev->sd.fwnode); 625 - 626 - return 0; 627 625 } 628 626 629 627 static const struct of_device_id rdacm21_of_ids[] = {
+1 -3
drivers/media/i2c/rj54n1cb0c.c
··· 1398 1398 return ret; 1399 1399 } 1400 1400 1401 - static int rj54n1_remove(struct i2c_client *client) 1401 + static void rj54n1_remove(struct i2c_client *client) 1402 1402 { 1403 1403 struct rj54n1 *rj54n1 = to_rj54n1(client); 1404 1404 ··· 1410 1410 clk_put(rj54n1->clk); 1411 1411 v4l2_ctrl_handler_free(&rj54n1->hdl); 1412 1412 v4l2_async_unregister_subdev(&rj54n1->subdev); 1413 - 1414 - return 0; 1415 1413 } 1416 1414 1417 1415 static const struct i2c_device_id rj54n1_id[] = {
+1 -3
drivers/media/i2c/s5c73m3/s5c73m3-core.c
··· 1770 1770 return ret; 1771 1771 } 1772 1772 1773 - static int s5c73m3_remove(struct i2c_client *client) 1773 + static void s5c73m3_remove(struct i2c_client *client) 1774 1774 { 1775 1775 struct v4l2_subdev *oif_sd = i2c_get_clientdata(client); 1776 1776 struct s5c73m3 *state = oif_sd_to_s5c73m3(oif_sd); ··· 1785 1785 media_entity_cleanup(&sensor_sd->entity); 1786 1786 1787 1787 s5c73m3_unregister_spi_driver(state); 1788 - 1789 - return 0; 1790 1788 } 1791 1789 1792 1790 static const struct i2c_device_id s5c73m3_id[] = {
+1 -3
drivers/media/i2c/s5k4ecgx.c
··· 996 996 return ret; 997 997 } 998 998 999 - static int s5k4ecgx_remove(struct i2c_client *client) 999 + static void s5k4ecgx_remove(struct i2c_client *client) 1000 1000 { 1001 1001 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1002 1002 struct s5k4ecgx *priv = to_s5k4ecgx(sd); ··· 1006 1006 v4l2_device_unregister_subdev(sd); 1007 1007 v4l2_ctrl_handler_free(&priv->handler); 1008 1008 media_entity_cleanup(&sd->entity); 1009 - 1010 - return 0; 1011 1009 } 1012 1010 1013 1011 static const struct i2c_device_id s5k4ecgx_id[] = {
+1 -3
drivers/media/i2c/s5k5baf.c
··· 2018 2018 return ret; 2019 2019 } 2020 2020 2021 - static int s5k5baf_remove(struct i2c_client *c) 2021 + static void s5k5baf_remove(struct i2c_client *c) 2022 2022 { 2023 2023 struct v4l2_subdev *sd = i2c_get_clientdata(c); 2024 2024 struct s5k5baf *state = to_s5k5baf(sd); ··· 2030 2030 sd = &state->cis_sd; 2031 2031 v4l2_device_unregister_subdev(sd); 2032 2032 media_entity_cleanup(&sd->entity); 2033 - 2034 - return 0; 2035 2033 } 2036 2034 2037 2035 static const struct i2c_device_id s5k5baf_id[] = {
+1 -2
drivers/media/i2c/s5k6a3.c
··· 354 354 return ret; 355 355 } 356 356 357 - static int s5k6a3_remove(struct i2c_client *client) 357 + static void s5k6a3_remove(struct i2c_client *client) 358 358 { 359 359 struct v4l2_subdev *sd = i2c_get_clientdata(client); 360 360 361 361 pm_runtime_disable(&client->dev); 362 362 v4l2_async_unregister_subdev(sd); 363 363 media_entity_cleanup(&sd->entity); 364 - return 0; 365 364 } 366 365 367 366 static const struct i2c_device_id s5k6a3_ids[] = {
+1 -3
drivers/media/i2c/s5k6aa.c
··· 1621 1621 return ret; 1622 1622 } 1623 1623 1624 - static int s5k6aa_remove(struct i2c_client *client) 1624 + static void s5k6aa_remove(struct i2c_client *client) 1625 1625 { 1626 1626 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1627 1627 1628 1628 v4l2_device_unregister_subdev(sd); 1629 1629 v4l2_ctrl_handler_free(sd->ctrl_handler); 1630 1630 media_entity_cleanup(&sd->entity); 1631 - 1632 - return 0; 1633 1631 } 1634 1632 1635 1633 static const struct i2c_device_id s5k6aa_id[] = {
+1 -3
drivers/media/i2c/saa6588.c
··· 484 484 return 0; 485 485 } 486 486 487 - static int saa6588_remove(struct i2c_client *client) 487 + static void saa6588_remove(struct i2c_client *client) 488 488 { 489 489 struct v4l2_subdev *sd = i2c_get_clientdata(client); 490 490 struct saa6588 *s = to_saa6588(sd); ··· 492 492 v4l2_device_unregister_subdev(sd); 493 493 494 494 cancel_delayed_work_sync(&s->work); 495 - 496 - return 0; 497 495 } 498 496 499 497 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/saa6752hs.c
··· 764 764 return 0; 765 765 } 766 766 767 - static int saa6752hs_remove(struct i2c_client *client) 767 + static void saa6752hs_remove(struct i2c_client *client) 768 768 { 769 769 struct v4l2_subdev *sd = i2c_get_clientdata(client); 770 770 771 771 v4l2_device_unregister_subdev(sd); 772 772 v4l2_ctrl_handler_free(&to_state(sd)->hdl); 773 - return 0; 774 773 } 775 774 776 775 static const struct i2c_device_id saa6752hs_id[] = {
+1 -2
drivers/media/i2c/saa7110.c
··· 428 428 return 0; 429 429 } 430 430 431 - static int saa7110_remove(struct i2c_client *client) 431 + static void saa7110_remove(struct i2c_client *client) 432 432 { 433 433 struct v4l2_subdev *sd = i2c_get_clientdata(client); 434 434 struct saa7110 *decoder = to_saa7110(sd); 435 435 436 436 v4l2_device_unregister_subdev(sd); 437 437 v4l2_ctrl_handler_free(&decoder->hdl); 438 - return 0; 439 438 } 440 439 441 440 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/saa7115.c
··· 1927 1927 1928 1928 /* ----------------------------------------------------------------------- */ 1929 1929 1930 - static int saa711x_remove(struct i2c_client *client) 1930 + static void saa711x_remove(struct i2c_client *client) 1931 1931 { 1932 1932 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1933 1933 1934 1934 v4l2_device_unregister_subdev(sd); 1935 1935 v4l2_ctrl_handler_free(sd->ctrl_handler); 1936 - return 0; 1937 1936 } 1938 1937 1939 1938 static const struct i2c_device_id saa711x_id[] = {
+1 -2
drivers/media/i2c/saa7127.c
··· 785 785 786 786 /* ----------------------------------------------------------------------- */ 787 787 788 - static int saa7127_remove(struct i2c_client *client) 788 + static void saa7127_remove(struct i2c_client *client) 789 789 { 790 790 struct v4l2_subdev *sd = i2c_get_clientdata(client); 791 791 792 792 v4l2_device_unregister_subdev(sd); 793 793 /* Turn off TV output */ 794 794 saa7127_set_video_enable(sd, 0); 795 - return 0; 796 795 } 797 796 798 797 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/saa717x.c
··· 1324 1324 return 0; 1325 1325 } 1326 1326 1327 - static int saa717x_remove(struct i2c_client *client) 1327 + static void saa717x_remove(struct i2c_client *client) 1328 1328 { 1329 1329 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1330 1330 1331 1331 v4l2_device_unregister_subdev(sd); 1332 1332 v4l2_ctrl_handler_free(sd->ctrl_handler); 1333 - return 0; 1334 1333 } 1335 1334 1336 1335 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/saa7185.c
··· 322 322 return 0; 323 323 } 324 324 325 - static int saa7185_remove(struct i2c_client *client) 325 + static void saa7185_remove(struct i2c_client *client) 326 326 { 327 327 struct v4l2_subdev *sd = i2c_get_clientdata(client); 328 328 struct saa7185 *encoder = to_saa7185(sd); ··· 330 330 v4l2_device_unregister_subdev(sd); 331 331 /* SW: output off is active */ 332 332 saa7185_write(sd, 0x61, (encoder->reg[0x61]) | 0x40); 333 - return 0; 334 333 } 335 334 336 335 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/sony-btf-mpx.c
··· 357 357 return 0; 358 358 } 359 359 360 - static int sony_btf_mpx_remove(struct i2c_client *client) 360 + static void sony_btf_mpx_remove(struct i2c_client *client) 361 361 { 362 362 struct v4l2_subdev *sd = i2c_get_clientdata(client); 363 363 364 364 v4l2_device_unregister_subdev(sd); 365 - 366 - return 0; 367 365 } 368 366 369 367 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/sr030pc30.c
··· 732 732 return 0; 733 733 } 734 734 735 - static int sr030pc30_remove(struct i2c_client *client) 735 + static void sr030pc30_remove(struct i2c_client *client) 736 736 { 737 737 struct v4l2_subdev *sd = i2c_get_clientdata(client); 738 738 739 739 v4l2_device_unregister_subdev(sd); 740 740 v4l2_ctrl_handler_free(sd->ctrl_handler); 741 - return 0; 742 741 } 743 742 744 743 static const struct i2c_device_id sr030pc30_id[] = {
+1 -3
drivers/media/i2c/st-mipid02.c
··· 1067 1067 return ret; 1068 1068 } 1069 1069 1070 - static int mipid02_remove(struct i2c_client *client) 1070 + static void mipid02_remove(struct i2c_client *client) 1071 1071 { 1072 1072 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1073 1073 struct mipid02_dev *bridge = to_mipid02_dev(sd); ··· 1078 1078 mipid02_set_power_off(bridge); 1079 1079 media_entity_cleanup(&bridge->sd.entity); 1080 1080 mutex_destroy(&bridge->lock); 1081 - 1082 - return 0; 1083 1081 } 1084 1082 1085 1083 static const struct of_device_id mipid02_dt_ids[] = {
+1 -3
drivers/media/i2c/tc358743.c
··· 2169 2169 return err; 2170 2170 } 2171 2171 2172 - static int tc358743_remove(struct i2c_client *client) 2172 + static void tc358743_remove(struct i2c_client *client) 2173 2173 { 2174 2174 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2175 2175 struct tc358743_state *state = to_state(sd); ··· 2185 2185 mutex_destroy(&state->confctl_mutex); 2186 2186 media_entity_cleanup(&sd->entity); 2187 2187 v4l2_ctrl_handler_free(&state->hdl); 2188 - 2189 - return 0; 2190 2188 } 2191 2189 2192 2190 static const struct i2c_device_id tc358743_id[] = {
+1 -3
drivers/media/i2c/tda1997x.c
··· 2805 2805 return ret; 2806 2806 } 2807 2807 2808 - static int tda1997x_remove(struct i2c_client *client) 2808 + static void tda1997x_remove(struct i2c_client *client) 2809 2809 { 2810 2810 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2811 2811 struct tda1997x_state *state = to_state(sd); ··· 2827 2827 mutex_destroy(&state->lock); 2828 2828 2829 2829 kfree(state); 2830 - 2831 - return 0; 2832 2830 } 2833 2831 2834 2832 static struct i2c_driver tda1997x_i2c_driver = {
+1 -2
drivers/media/i2c/tda7432.c
··· 390 390 return 0; 391 391 } 392 392 393 - static int tda7432_remove(struct i2c_client *client) 393 + static void tda7432_remove(struct i2c_client *client) 394 394 { 395 395 struct v4l2_subdev *sd = i2c_get_clientdata(client); 396 396 struct tda7432 *t = to_state(sd); ··· 398 398 tda7432_set(sd); 399 399 v4l2_device_unregister_subdev(sd); 400 400 v4l2_ctrl_handler_free(&t->hdl); 401 - return 0; 402 401 } 403 402 404 403 static const struct i2c_device_id tda7432_id[] = {
+1 -2
drivers/media/i2c/tda9840.c
··· 175 175 return 0; 176 176 } 177 177 178 - static int tda9840_remove(struct i2c_client *client) 178 + static void tda9840_remove(struct i2c_client *client) 179 179 { 180 180 struct v4l2_subdev *sd = i2c_get_clientdata(client); 181 181 182 182 v4l2_device_unregister_subdev(sd); 183 - return 0; 184 183 } 185 184 186 185 static const struct i2c_device_id tda9840_id[] = {
+1 -2
drivers/media/i2c/tea6415c.c
··· 134 134 return 0; 135 135 } 136 136 137 - static int tea6415c_remove(struct i2c_client *client) 137 + static void tea6415c_remove(struct i2c_client *client) 138 138 { 139 139 struct v4l2_subdev *sd = i2c_get_clientdata(client); 140 140 141 141 v4l2_device_unregister_subdev(sd); 142 - return 0; 143 142 } 144 143 145 144 static const struct i2c_device_id tea6415c_id[] = {
+1 -2
drivers/media/i2c/tea6420.c
··· 116 116 return 0; 117 117 } 118 118 119 - static int tea6420_remove(struct i2c_client *client) 119 + static void tea6420_remove(struct i2c_client *client) 120 120 { 121 121 struct v4l2_subdev *sd = i2c_get_clientdata(client); 122 122 123 123 v4l2_device_unregister_subdev(sd); 124 - return 0; 125 124 } 126 125 127 126 static const struct i2c_device_id tea6420_id[] = {
+1 -3
drivers/media/i2c/ths7303.c
··· 358 358 return 0; 359 359 } 360 360 361 - static int ths7303_remove(struct i2c_client *client) 361 + static void ths7303_remove(struct i2c_client *client) 362 362 { 363 363 struct v4l2_subdev *sd = i2c_get_clientdata(client); 364 364 365 365 v4l2_device_unregister_subdev(sd); 366 - 367 - return 0; 368 366 } 369 367 370 368 static const struct i2c_device_id ths7303_id[] = {
+1 -3
drivers/media/i2c/ths8200.c
··· 468 468 return 0; 469 469 } 470 470 471 - static int ths8200_remove(struct i2c_client *client) 471 + static void ths8200_remove(struct i2c_client *client) 472 472 { 473 473 struct v4l2_subdev *sd = i2c_get_clientdata(client); 474 474 struct ths8200_state *decoder = to_state(sd); ··· 478 478 479 479 ths8200_s_power(sd, false); 480 480 v4l2_async_unregister_subdev(&decoder->sd); 481 - 482 - return 0; 483 481 } 484 482 485 483 static const struct i2c_device_id ths8200_id[] = {
+1 -2
drivers/media/i2c/tlv320aic23b.c
··· 177 177 return 0; 178 178 } 179 179 180 - static int tlv320aic23b_remove(struct i2c_client *client) 180 + static void tlv320aic23b_remove(struct i2c_client *client) 181 181 { 182 182 struct v4l2_subdev *sd = i2c_get_clientdata(client); 183 183 struct tlv320aic23b_state *state = to_state(sd); 184 184 185 185 v4l2_device_unregister_subdev(sd); 186 186 v4l2_ctrl_handler_free(&state->hdl); 187 - return 0; 188 187 } 189 188 190 189 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/tvaudio.c
··· 2065 2065 return 0; 2066 2066 } 2067 2067 2068 - static int tvaudio_remove(struct i2c_client *client) 2068 + static void tvaudio_remove(struct i2c_client *client) 2069 2069 { 2070 2070 struct v4l2_subdev *sd = i2c_get_clientdata(client); 2071 2071 struct CHIPSTATE *chip = to_state(sd); ··· 2079 2079 2080 2080 v4l2_device_unregister_subdev(sd); 2081 2081 v4l2_ctrl_handler_free(&chip->hdl); 2082 - return 0; 2083 2082 } 2084 2083 2085 2084 /* This driver supports many devices and the idea is to let the driver
+1 -2
drivers/media/i2c/tvp514x.c
··· 1121 1121 * Unregister decoder as an i2c client device and V4L2 1122 1122 * device. Complement of tvp514x_probe(). 1123 1123 */ 1124 - static int tvp514x_remove(struct i2c_client *client) 1124 + static void tvp514x_remove(struct i2c_client *client) 1125 1125 { 1126 1126 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1127 1127 struct tvp514x_decoder *decoder = to_decoder(sd); ··· 1129 1129 v4l2_async_unregister_subdev(&decoder->sd); 1130 1130 media_entity_cleanup(&decoder->sd.entity); 1131 1131 v4l2_ctrl_handler_free(&decoder->hdl); 1132 - return 0; 1133 1132 } 1134 1133 /* TVP5146 Init/Power on Sequence */ 1135 1134 static const struct tvp514x_reg tvp5146_init_reg_seq[] = {
+1 -3
drivers/media/i2c/tvp5150.c
··· 2230 2230 return res; 2231 2231 } 2232 2232 2233 - static int tvp5150_remove(struct i2c_client *c) 2233 + static void tvp5150_remove(struct i2c_client *c) 2234 2234 { 2235 2235 struct v4l2_subdev *sd = i2c_get_clientdata(c); 2236 2236 struct tvp5150 *decoder = to_tvp5150(sd); ··· 2250 2250 v4l2_ctrl_handler_free(&decoder->hdl); 2251 2251 pm_runtime_disable(&c->dev); 2252 2252 pm_runtime_set_suspended(&c->dev); 2253 - 2254 - return 0; 2255 2253 } 2256 2254 2257 2255 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/tvp7002.c
··· 1044 1044 * Reset the TVP7002 device 1045 1045 * Returns zero. 1046 1046 */ 1047 - static int tvp7002_remove(struct i2c_client *c) 1047 + static void tvp7002_remove(struct i2c_client *c) 1048 1048 { 1049 1049 struct v4l2_subdev *sd = i2c_get_clientdata(c); 1050 1050 struct tvp7002 *device = to_tvp7002(sd); ··· 1056 1056 media_entity_cleanup(&device->sd.entity); 1057 1057 #endif 1058 1058 v4l2_ctrl_handler_free(&device->hdl); 1059 - return 0; 1060 1059 } 1061 1060 1062 1061 /* I2C Device ID table */
+1 -2
drivers/media/i2c/tw2804.c
··· 405 405 return 0; 406 406 } 407 407 408 - static int tw2804_remove(struct i2c_client *client) 408 + static void tw2804_remove(struct i2c_client *client) 409 409 { 410 410 struct v4l2_subdev *sd = i2c_get_clientdata(client); 411 411 struct tw2804 *state = to_state(sd); 412 412 413 413 v4l2_device_unregister_subdev(sd); 414 414 v4l2_ctrl_handler_free(&state->hdl); 415 - return 0; 416 415 } 417 416 418 417 static const struct i2c_device_id tw2804_id[] = {
+1 -2
drivers/media/i2c/tw9903.c
··· 235 235 return 0; 236 236 } 237 237 238 - static int tw9903_remove(struct i2c_client *client) 238 + static void tw9903_remove(struct i2c_client *client) 239 239 { 240 240 struct v4l2_subdev *sd = i2c_get_clientdata(client); 241 241 242 242 v4l2_device_unregister_subdev(sd); 243 243 v4l2_ctrl_handler_free(&to_state(sd)->hdl); 244 - return 0; 245 244 } 246 245 247 246 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/tw9906.c
··· 203 203 return 0; 204 204 } 205 205 206 - static int tw9906_remove(struct i2c_client *client) 206 + static void tw9906_remove(struct i2c_client *client) 207 207 { 208 208 struct v4l2_subdev *sd = i2c_get_clientdata(client); 209 209 210 210 v4l2_device_unregister_subdev(sd); 211 211 v4l2_ctrl_handler_free(&to_state(sd)->hdl); 212 - return 0; 213 212 } 214 213 215 214 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/tw9910.c
··· 993 993 return ret; 994 994 } 995 995 996 - static int tw9910_remove(struct i2c_client *client) 996 + static void tw9910_remove(struct i2c_client *client) 997 997 { 998 998 struct tw9910_priv *priv = to_tw9910(client); 999 999 ··· 1001 1001 gpiod_put(priv->pdn_gpio); 1002 1002 clk_put(priv->clk); 1003 1003 v4l2_async_unregister_subdev(&priv->subdev); 1004 - 1005 - return 0; 1006 1004 } 1007 1005 1008 1006 static const struct i2c_device_id tw9910_id[] = {
+1 -2
drivers/media/i2c/uda1342.c
··· 72 72 return 0; 73 73 } 74 74 75 - static int uda1342_remove(struct i2c_client *client) 75 + static void uda1342_remove(struct i2c_client *client) 76 76 { 77 77 struct v4l2_subdev *sd = i2c_get_clientdata(client); 78 78 79 79 v4l2_device_unregister_subdev(sd); 80 - return 0; 81 80 } 82 81 83 82 static const struct i2c_device_id uda1342_id[] = {
+1 -2
drivers/media/i2c/upd64031a.c
··· 210 210 return 0; 211 211 } 212 212 213 - static int upd64031a_remove(struct i2c_client *client) 213 + static void upd64031a_remove(struct i2c_client *client) 214 214 { 215 215 struct v4l2_subdev *sd = i2c_get_clientdata(client); 216 216 217 217 v4l2_device_unregister_subdev(sd); 218 - return 0; 219 218 } 220 219 221 220 /* ----------------------------------------------------------------------- */
+1 -2
drivers/media/i2c/upd64083.c
··· 181 181 return 0; 182 182 } 183 183 184 - static int upd64083_remove(struct i2c_client *client) 184 + static void upd64083_remove(struct i2c_client *client) 185 185 { 186 186 struct v4l2_subdev *sd = i2c_get_clientdata(client); 187 187 188 188 v4l2_device_unregister_subdev(sd); 189 - return 0; 190 189 } 191 190 192 191 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/video-i2c.c
··· 895 895 return ret; 896 896 } 897 897 898 - static int video_i2c_remove(struct i2c_client *client) 898 + static void video_i2c_remove(struct i2c_client *client) 899 899 { 900 900 struct video_i2c_data *data = i2c_get_clientdata(client); 901 901 ··· 908 908 data->chip->set_power(data, false); 909 909 910 910 video_unregister_device(&data->vdev); 911 - 912 - return 0; 913 911 } 914 912 915 913 #ifdef CONFIG_PM
+1 -2
drivers/media/i2c/vp27smpx.c
··· 163 163 return 0; 164 164 } 165 165 166 - static int vp27smpx_remove(struct i2c_client *client) 166 + static void vp27smpx_remove(struct i2c_client *client) 167 167 { 168 168 struct v4l2_subdev *sd = i2c_get_clientdata(client); 169 169 170 170 v4l2_device_unregister_subdev(sd); 171 - return 0; 172 171 } 173 172 174 173 /* ----------------------------------------------------------------------- */
+1 -3
drivers/media/i2c/vpx3220.c
··· 526 526 return 0; 527 527 } 528 528 529 - static int vpx3220_remove(struct i2c_client *client) 529 + static void vpx3220_remove(struct i2c_client *client) 530 530 { 531 531 struct v4l2_subdev *sd = i2c_get_clientdata(client); 532 532 struct vpx3220 *decoder = to_vpx3220(sd); 533 533 534 534 v4l2_device_unregister_subdev(sd); 535 535 v4l2_ctrl_handler_free(&decoder->hdl); 536 - 537 - return 0; 538 536 } 539 537 540 538 static const struct i2c_device_id vpx3220_id[] = {
+1 -2
drivers/media/i2c/vs6624.c
··· 824 824 return ret; 825 825 } 826 826 827 - static int vs6624_remove(struct i2c_client *client) 827 + static void vs6624_remove(struct i2c_client *client) 828 828 { 829 829 struct v4l2_subdev *sd = i2c_get_clientdata(client); 830 830 831 831 v4l2_device_unregister_subdev(sd); 832 832 v4l2_ctrl_handler_free(sd->ctrl_handler); 833 - return 0; 834 833 } 835 834 836 835 static const struct i2c_device_id vs6624_id[] = {
+1 -2
drivers/media/i2c/wm8739.c
··· 234 234 return 0; 235 235 } 236 236 237 - static int wm8739_remove(struct i2c_client *client) 237 + static void wm8739_remove(struct i2c_client *client) 238 238 { 239 239 struct v4l2_subdev *sd = i2c_get_clientdata(client); 240 240 struct wm8739_state *state = to_state(sd); 241 241 242 242 v4l2_device_unregister_subdev(sd); 243 243 v4l2_ctrl_handler_free(&state->hdl); 244 - return 0; 245 244 } 246 245 247 246 static const struct i2c_device_id wm8739_id[] = {
+1 -2
drivers/media/i2c/wm8775.c
··· 280 280 return 0; 281 281 } 282 282 283 - static int wm8775_remove(struct i2c_client *client) 283 + static void wm8775_remove(struct i2c_client *client) 284 284 { 285 285 struct v4l2_subdev *sd = i2c_get_clientdata(client); 286 286 struct wm8775_state *state = to_state(sd); 287 287 288 288 v4l2_device_unregister_subdev(sd); 289 289 v4l2_ctrl_handler_free(&state->hdl); 290 - return 0; 291 290 } 292 291 293 292 static const struct i2c_device_id wm8775_id[] = {
+1 -2
drivers/media/radio/radio-tea5764.c
··· 487 487 return ret; 488 488 } 489 489 490 - static int tea5764_i2c_remove(struct i2c_client *client) 490 + static void tea5764_i2c_remove(struct i2c_client *client) 491 491 { 492 492 struct tea5764_device *radio = i2c_get_clientdata(client); 493 493 ··· 499 499 v4l2_device_unregister(&radio->v4l2_dev); 500 500 kfree(radio); 501 501 } 502 - return 0; 503 502 } 504 503 505 504 /* I2C subsystem interface */
+1 -2
drivers/media/radio/saa7706h.c
··· 384 384 return err; 385 385 } 386 386 387 - static int saa7706h_remove(struct i2c_client *client) 387 + static void saa7706h_remove(struct i2c_client *client) 388 388 { 389 389 struct v4l2_subdev *sd = i2c_get_clientdata(client); 390 390 struct saa7706h_state *state = to_state(sd); ··· 393 393 v4l2_device_unregister_subdev(sd); 394 394 v4l2_ctrl_handler_free(&state->hdl); 395 395 kfree(to_state(sd)); 396 - return 0; 397 396 } 398 397 399 398 static const struct i2c_device_id saa7706h_id[] = {
+1 -2
drivers/media/radio/si470x/radio-si470x-i2c.c
··· 461 461 /* 462 462 * si470x_i2c_remove - remove the device 463 463 */ 464 - static int si470x_i2c_remove(struct i2c_client *client) 464 + static void si470x_i2c_remove(struct i2c_client *client) 465 465 { 466 466 struct si470x_device *radio = i2c_get_clientdata(client); 467 467 ··· 472 472 473 473 v4l2_ctrl_handler_free(&radio->hdl); 474 474 v4l2_device_unregister(&radio->v4l2_dev); 475 - return 0; 476 475 } 477 476 478 477
+1 -3
drivers/media/radio/si4713/si4713.c
··· 1623 1623 } 1624 1624 1625 1625 /* si4713_remove - remove the device */ 1626 - static int si4713_remove(struct i2c_client *client) 1626 + static void si4713_remove(struct i2c_client *client) 1627 1627 { 1628 1628 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1629 1629 struct si4713_device *sdev = to_si4713_device(sd); ··· 1635 1635 1636 1636 v4l2_device_unregister_subdev(sd); 1637 1637 v4l2_ctrl_handler_free(sd->ctrl_handler); 1638 - 1639 - return 0; 1640 1638 } 1641 1639 1642 1640 /* si4713_i2c_driver - i2c driver interface */
+1 -2
drivers/media/radio/tef6862.c
··· 165 165 return 0; 166 166 } 167 167 168 - static int tef6862_remove(struct i2c_client *client) 168 + static void tef6862_remove(struct i2c_client *client) 169 169 { 170 170 struct v4l2_subdev *sd = i2c_get_clientdata(client); 171 171 172 172 v4l2_device_unregister_subdev(sd); 173 173 kfree(to_state(sd)); 174 - return 0; 175 174 } 176 175 177 176 static const struct i2c_device_id tef6862_id[] = {
+1 -3
drivers/media/test-drivers/vidtv/vidtv_demod.c
··· 438 438 return 0; 439 439 } 440 440 441 - static int vidtv_demod_i2c_remove(struct i2c_client *client) 441 + static void vidtv_demod_i2c_remove(struct i2c_client *client) 442 442 { 443 443 struct vidtv_demod_state *state = i2c_get_clientdata(client); 444 444 445 445 kfree(state); 446 - 447 - return 0; 448 446 } 449 447 450 448 static struct i2c_driver vidtv_demod_i2c_driver = {
+1 -3
drivers/media/test-drivers/vidtv/vidtv_tuner.c
··· 414 414 return 0; 415 415 } 416 416 417 - static int vidtv_tuner_i2c_remove(struct i2c_client *client) 417 + static void vidtv_tuner_i2c_remove(struct i2c_client *client) 418 418 { 419 419 struct vidtv_tuner_dev *tuner_dev = i2c_get_clientdata(client); 420 420 421 421 kfree(tuner_dev); 422 - 423 - return 0; 424 422 } 425 423 426 424 static struct i2c_driver vidtv_tuner_i2c_driver = {
+1 -3
drivers/media/tuners/e4000.c
··· 706 706 return ret; 707 707 } 708 708 709 - static int e4000_remove(struct i2c_client *client) 709 + static void e4000_remove(struct i2c_client *client) 710 710 { 711 711 struct v4l2_subdev *sd = i2c_get_clientdata(client); 712 712 struct e4000_dev *dev = container_of(sd, struct e4000_dev, sd); ··· 717 717 v4l2_ctrl_handler_free(&dev->hdl); 718 718 #endif 719 719 kfree(dev); 720 - 721 - return 0; 722 720 } 723 721 724 722 static const struct i2c_device_id e4000_id_table[] = {
+1 -2
drivers/media/tuners/fc2580.c
··· 588 588 return ret; 589 589 } 590 590 591 - static int fc2580_remove(struct i2c_client *client) 591 + static void fc2580_remove(struct i2c_client *client) 592 592 { 593 593 struct fc2580_dev *dev = i2c_get_clientdata(client); 594 594 ··· 598 598 v4l2_ctrl_handler_free(&dev->hdl); 599 599 #endif 600 600 kfree(dev); 601 - return 0; 602 601 } 603 602 604 603 static const struct i2c_device_id fc2580_id_table[] = {
+1 -3
drivers/media/tuners/m88rs6000t.c
··· 697 697 return ret; 698 698 } 699 699 700 - static int m88rs6000t_remove(struct i2c_client *client) 700 + static void m88rs6000t_remove(struct i2c_client *client) 701 701 { 702 702 struct m88rs6000t_dev *dev = i2c_get_clientdata(client); 703 703 struct dvb_frontend *fe = dev->cfg.fe; ··· 707 707 memset(&fe->ops.tuner_ops, 0, sizeof(struct dvb_tuner_ops)); 708 708 fe->tuner_priv = NULL; 709 709 kfree(dev); 710 - 711 - return 0; 712 710 } 713 711 714 712 static const struct i2c_device_id m88rs6000t_id[] = {
+1 -3
drivers/media/tuners/mt2060.c
··· 509 509 return ret; 510 510 } 511 511 512 - static int mt2060_remove(struct i2c_client *client) 512 + static void mt2060_remove(struct i2c_client *client) 513 513 { 514 514 dev_dbg(&client->dev, "\n"); 515 - 516 - return 0; 517 515 } 518 516 519 517 static const struct i2c_device_id mt2060_id_table[] = {
+1 -2
drivers/media/tuners/mxl301rf.c
··· 307 307 return 0; 308 308 } 309 309 310 - static int mxl301rf_remove(struct i2c_client *client) 310 + static void mxl301rf_remove(struct i2c_client *client) 311 311 { 312 312 struct mxl301rf_state *state; 313 313 314 314 state = cfg_to_state(i2c_get_clientdata(client)); 315 315 state->cfg.fe->tuner_priv = NULL; 316 316 kfree(state); 317 - return 0; 318 317 } 319 318 320 319
+1 -2
drivers/media/tuners/qm1d1b0004.c
··· 232 232 return ret; 233 233 } 234 234 235 - static int qm1d1b0004_remove(struct i2c_client *client) 235 + static void qm1d1b0004_remove(struct i2c_client *client) 236 236 { 237 237 struct dvb_frontend *fe; 238 238 239 239 fe = i2c_get_clientdata(client); 240 240 kfree(fe->tuner_priv); 241 241 fe->tuner_priv = NULL; 242 - return 0; 243 242 } 244 243 245 244
+1 -2
drivers/media/tuners/qm1d1c0042.c
··· 424 424 return 0; 425 425 } 426 426 427 - static int qm1d1c0042_remove(struct i2c_client *client) 427 + static void qm1d1c0042_remove(struct i2c_client *client) 428 428 { 429 429 struct qm1d1c0042_state *state; 430 430 431 431 state = cfg_to_state(i2c_get_clientdata(client)); 432 432 state->cfg.fe->tuner_priv = NULL; 433 433 kfree(state); 434 - return 0; 435 434 } 436 435 437 436
+1 -3
drivers/media/tuners/si2157.c
··· 951 951 return ret; 952 952 } 953 953 954 - static int si2157_remove(struct i2c_client *client) 954 + static void si2157_remove(struct i2c_client *client) 955 955 { 956 956 struct si2157_dev *dev = i2c_get_clientdata(client); 957 957 struct dvb_frontend *fe = dev->fe; ··· 969 969 memset(&fe->ops.tuner_ops, 0, sizeof(struct dvb_tuner_ops)); 970 970 fe->tuner_priv = NULL; 971 971 kfree(dev); 972 - 973 - return 0; 974 972 } 975 973 976 974 /*
+1 -3
drivers/media/tuners/tda18212.c
··· 242 242 return ret; 243 243 } 244 244 245 - static int tda18212_remove(struct i2c_client *client) 245 + static void tda18212_remove(struct i2c_client *client) 246 246 { 247 247 struct tda18212_dev *dev = i2c_get_clientdata(client); 248 248 struct dvb_frontend *fe = dev->cfg.fe; ··· 252 252 memset(&fe->ops.tuner_ops, 0, sizeof(struct dvb_tuner_ops)); 253 253 fe->tuner_priv = NULL; 254 254 kfree(dev); 255 - 256 - return 0; 257 255 } 258 256 259 257 static const struct i2c_device_id tda18212_id[] = {
+1 -3
drivers/media/tuners/tda18250.c
··· 856 856 return ret; 857 857 } 858 858 859 - static int tda18250_remove(struct i2c_client *client) 859 + static void tda18250_remove(struct i2c_client *client) 860 860 { 861 861 struct tda18250_dev *dev = i2c_get_clientdata(client); 862 862 struct dvb_frontend *fe = dev->fe; ··· 866 866 memset(&fe->ops.tuner_ops, 0, sizeof(struct dvb_tuner_ops)); 867 867 fe->tuner_priv = NULL; 868 868 kfree(dev); 869 - 870 - return 0; 871 869 } 872 870 873 871 static const struct i2c_device_id tda18250_id_table[] = {
+1 -2
drivers/media/tuners/tua9001.c
··· 227 227 return ret; 228 228 } 229 229 230 - static int tua9001_remove(struct i2c_client *client) 230 + static void tua9001_remove(struct i2c_client *client) 231 231 { 232 232 struct tua9001_dev *dev = i2c_get_clientdata(client); 233 233 struct dvb_frontend *fe = dev->fe; ··· 243 243 dev_err(&client->dev, "Tuner disable failed (%pe)\n", ERR_PTR(ret)); 244 244 } 245 245 kfree(dev); 246 - return 0; 247 246 } 248 247 249 248 static const struct i2c_device_id tua9001_id_table[] = {
+1 -2
drivers/media/usb/go7007/s2250-board.c
··· 601 601 return err; 602 602 } 603 603 604 - static int s2250_remove(struct i2c_client *client) 604 + static void s2250_remove(struct i2c_client *client) 605 605 { 606 606 struct s2250 *state = to_state(i2c_get_clientdata(client)); 607 607 ··· 609 609 v4l2_device_unregister_subdev(&state->sd); 610 610 v4l2_ctrl_handler_free(&state->hdl); 611 611 kfree(state); 612 - return 0; 613 612 } 614 613 615 614 static const struct i2c_device_id s2250_id[] = {
+1 -2
drivers/media/v4l2-core/tuner-core.c
··· 779 779 * @client: i2c_client descriptor 780 780 */ 781 781 782 - static int tuner_remove(struct i2c_client *client) 782 + static void tuner_remove(struct i2c_client *client) 783 783 { 784 784 struct tuner *t = to_tuner(i2c_get_clientdata(client)); 785 785 ··· 789 789 790 790 list_del(&t->list); 791 791 kfree(t); 792 - return 0; 793 792 } 794 793 795 794 /*
+1 -3
drivers/mfd/88pm800.c
··· 583 583 return ret; 584 584 } 585 585 586 - static int pm800_remove(struct i2c_client *client) 586 + static void pm800_remove(struct i2c_client *client) 587 587 { 588 588 struct pm80x_chip *chip = i2c_get_clientdata(client); 589 589 ··· 592 592 593 593 pm800_pages_exit(chip); 594 594 pm80x_deinit(); 595 - 596 - return 0; 597 595 } 598 596 599 597 static struct i2c_driver pm800_driver = {
+1 -3
drivers/mfd/88pm805.c
··· 239 239 return ret; 240 240 } 241 241 242 - static int pm805_remove(struct i2c_client *client) 242 + static void pm805_remove(struct i2c_client *client) 243 243 { 244 244 struct pm80x_chip *chip = i2c_get_clientdata(client); 245 245 ··· 247 247 device_irq_exit_805(chip); 248 248 249 249 pm80x_deinit(); 250 - 251 - return 0; 252 250 } 253 251 254 252 static struct i2c_driver pm805_driver = {
+1 -2
drivers/mfd/88pm860x-core.c
··· 1201 1201 return 0; 1202 1202 } 1203 1203 1204 - static int pm860x_remove(struct i2c_client *client) 1204 + static void pm860x_remove(struct i2c_client *client) 1205 1205 { 1206 1206 struct pm860x_chip *chip = i2c_get_clientdata(client); 1207 1207 ··· 1210 1210 regmap_exit(chip->regmap_companion); 1211 1211 i2c_unregister_device(chip->companion); 1212 1212 } 1213 - return 0; 1214 1213 } 1215 1214 1216 1215 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/mfd/acer-ec-a500.c
··· 169 169 return 0; 170 170 } 171 171 172 - static int a500_ec_remove(struct i2c_client *client) 172 + static void a500_ec_remove(struct i2c_client *client) 173 173 { 174 174 if (of_device_is_system_power_controller(client->dev.of_node)) { 175 175 if (pm_power_off == a500_ec_poweroff) ··· 177 177 178 178 unregister_restart_handler(&a500_ec_restart_handler); 179 179 } 180 - 181 - return 0; 182 180 } 183 181 184 182 static const struct of_device_id a500_ec_match[] = {
+1 -3
drivers/mfd/arizona-i2c.c
··· 84 84 return arizona_dev_init(arizona); 85 85 } 86 86 87 - static int arizona_i2c_remove(struct i2c_client *i2c) 87 + static void arizona_i2c_remove(struct i2c_client *i2c) 88 88 { 89 89 struct arizona *arizona = dev_get_drvdata(&i2c->dev); 90 90 91 91 arizona_dev_exit(arizona); 92 - 93 - return 0; 94 92 } 95 93 96 94 static const struct i2c_device_id arizona_i2c_id[] = {
+1 -3
drivers/mfd/axp20x-i2c.c
··· 50 50 return axp20x_device_probe(axp20x); 51 51 } 52 52 53 - static int axp20x_i2c_remove(struct i2c_client *i2c) 53 + static void axp20x_i2c_remove(struct i2c_client *i2c) 54 54 { 55 55 struct axp20x_dev *axp20x = i2c_get_clientdata(i2c); 56 56 57 57 axp20x_device_remove(axp20x); 58 - 59 - return 0; 60 58 } 61 59 62 60 #ifdef CONFIG_OF
+1 -2
drivers/mfd/da903x.c
··· 532 532 return da903x_add_subdevs(chip, pdata); 533 533 } 534 534 535 - static int da903x_remove(struct i2c_client *client) 535 + static void da903x_remove(struct i2c_client *client) 536 536 { 537 537 struct da903x_chip *chip = i2c_get_clientdata(client); 538 538 539 539 da903x_remove_subdevs(chip); 540 - return 0; 541 540 } 542 541 543 542 static struct i2c_driver da903x_driver = {
+1 -2
drivers/mfd/da9052-i2c.c
··· 168 168 return da9052_device_init(da9052, id->driver_data); 169 169 } 170 170 171 - static int da9052_i2c_remove(struct i2c_client *client) 171 + static void da9052_i2c_remove(struct i2c_client *client) 172 172 { 173 173 struct da9052 *da9052 = i2c_get_clientdata(client); 174 174 175 175 da9052_device_exit(da9052); 176 - return 0; 177 176 } 178 177 179 178 static struct i2c_driver da9052_i2c_driver = {
+1 -3
drivers/mfd/da9055-i2c.c
··· 41 41 return da9055_device_init(da9055); 42 42 } 43 43 44 - static int da9055_i2c_remove(struct i2c_client *i2c) 44 + static void da9055_i2c_remove(struct i2c_client *i2c) 45 45 { 46 46 struct da9055 *da9055 = i2c_get_clientdata(i2c); 47 47 48 48 da9055_device_exit(da9055); 49 - 50 - return 0; 51 49 } 52 50 53 51 /*
+1 -3
drivers/mfd/da9062-core.c
··· 723 723 return ret; 724 724 } 725 725 726 - static int da9062_i2c_remove(struct i2c_client *i2c) 726 + static void da9062_i2c_remove(struct i2c_client *i2c) 727 727 { 728 728 struct da9062 *chip = i2c_get_clientdata(i2c); 729 729 730 730 mfd_remove_devices(chip->dev); 731 731 regmap_del_irq_chip(i2c->irq, chip->regmap_irq); 732 - 733 - return 0; 734 732 } 735 733 736 734 static const struct i2c_device_id da9062_i2c_id[] = {
+1 -3
drivers/mfd/da9150-core.c
··· 471 471 return ret; 472 472 } 473 473 474 - static int da9150_remove(struct i2c_client *client) 474 + static void da9150_remove(struct i2c_client *client) 475 475 { 476 476 struct da9150 *da9150 = i2c_get_clientdata(client); 477 477 478 478 regmap_del_irq_chip(da9150->irq, da9150->regmap_irq_data); 479 479 mfd_remove_devices(da9150->dev); 480 480 i2c_unregister_device(da9150->core_qif); 481 - 482 - return 0; 483 481 } 484 482 485 483 static void da9150_shutdown(struct i2c_client *client)
+1 -2
drivers/mfd/dm355evm_msp.c
··· 375 375 dm355evm_command(MSP_COMMAND_POWEROFF); 376 376 } 377 377 378 - static int dm355evm_msp_remove(struct i2c_client *client) 378 + static void dm355evm_msp_remove(struct i2c_client *client) 379 379 { 380 380 pm_power_off = NULL; 381 381 msp430 = NULL; 382 - return 0; 383 382 } 384 383 385 384 static int
+1 -3
drivers/mfd/ene-kb3930.c
··· 177 177 return 0; 178 178 } 179 179 180 - static int kb3930_remove(struct i2c_client *client) 180 + static void kb3930_remove(struct i2c_client *client) 181 181 { 182 182 struct kb3930 *ddata = i2c_get_clientdata(client); 183 183 ··· 187 187 unregister_restart_handler(&kb3930_restart_nb); 188 188 } 189 189 kb3930_power_off = NULL; 190 - 191 - return 0; 192 190 } 193 191 194 192 static const struct of_device_id kb3930_dt_ids[] = {
+1 -3
drivers/mfd/gateworks-gsc.c
··· 255 255 return 0; 256 256 } 257 257 258 - static int gsc_remove(struct i2c_client *client) 258 + static void gsc_remove(struct i2c_client *client) 259 259 { 260 260 sysfs_remove_group(&client->dev.kobj, &attr_group); 261 - 262 - return 0; 263 261 } 264 262 265 263 static struct i2c_driver gsc_driver = {
+1 -3
drivers/mfd/intel_soc_pmic_core.c
··· 81 81 return ret; 82 82 } 83 83 84 - static int intel_soc_pmic_i2c_remove(struct i2c_client *i2c) 84 + static void intel_soc_pmic_i2c_remove(struct i2c_client *i2c) 85 85 { 86 86 struct intel_soc_pmic *pmic = dev_get_drvdata(&i2c->dev); 87 87 ··· 91 91 pwm_remove_table(crc_pwm_lookup, ARRAY_SIZE(crc_pwm_lookup)); 92 92 93 93 mfd_remove_devices(&i2c->dev); 94 - 95 - return 0; 96 94 } 97 95 98 96 static void intel_soc_pmic_shutdown(struct i2c_client *i2c)
+1 -3
drivers/mfd/iqs62x.c
··· 1008 1008 return ret; 1009 1009 } 1010 1010 1011 - static int iqs62x_remove(struct i2c_client *client) 1011 + static void iqs62x_remove(struct i2c_client *client) 1012 1012 { 1013 1013 struct iqs62x_core *iqs62x = i2c_get_clientdata(client); 1014 1014 1015 1015 wait_for_completion(&iqs62x->fw_done); 1016 - 1017 - return 0; 1018 1016 } 1019 1017 1020 1018 static int __maybe_unused iqs62x_suspend(struct device *dev)
+1 -3
drivers/mfd/lm3533-core.c
··· 607 607 return lm3533_device_init(lm3533); 608 608 } 609 609 610 - static int lm3533_i2c_remove(struct i2c_client *i2c) 610 + static void lm3533_i2c_remove(struct i2c_client *i2c) 611 611 { 612 612 struct lm3533 *lm3533 = i2c_get_clientdata(i2c); 613 613 614 614 dev_dbg(&i2c->dev, "%s\n", __func__); 615 615 616 616 lm3533_device_exit(lm3533); 617 - 618 - return 0; 619 617 } 620 618 621 619 static const struct i2c_device_id lm3533_i2c_ids[] = {
+1 -2
drivers/mfd/lp8788.c
··· 199 199 ARRAY_SIZE(lp8788_devs), NULL, 0, NULL); 200 200 } 201 201 202 - static int lp8788_remove(struct i2c_client *cl) 202 + static void lp8788_remove(struct i2c_client *cl) 203 203 { 204 204 struct lp8788 *lp = i2c_get_clientdata(cl); 205 205 206 206 mfd_remove_devices(lp->dev); 207 207 lp8788_irq_exit(lp); 208 - return 0; 209 208 } 210 209 211 210 static const struct i2c_device_id lp8788_ids[] = {
+1 -3
drivers/mfd/madera-i2c.c
··· 112 112 return madera_dev_init(madera); 113 113 } 114 114 115 - static int madera_i2c_remove(struct i2c_client *i2c) 115 + static void madera_i2c_remove(struct i2c_client *i2c) 116 116 { 117 117 struct madera *madera = dev_get_drvdata(&i2c->dev); 118 118 119 119 madera_dev_exit(madera); 120 - 121 - return 0; 122 120 } 123 121 124 122 static const struct i2c_device_id madera_i2c_id[] = {
+1 -3
drivers/mfd/max14577.c
··· 463 463 return ret; 464 464 } 465 465 466 - static int max14577_i2c_remove(struct i2c_client *i2c) 466 + static void max14577_i2c_remove(struct i2c_client *i2c) 467 467 { 468 468 struct max14577 *max14577 = i2c_get_clientdata(i2c); 469 469 ··· 471 471 regmap_del_irq_chip(max14577->irq, max14577->irq_data); 472 472 if (max14577->dev_type == MAXIM_DEVICE_TYPE_MAX77836) 473 473 max77836_remove(max14577); 474 - 475 - return 0; 476 474 } 477 475 478 476 static const struct i2c_device_id max14577_i2c_id[] = {
+1 -3
drivers/mfd/max77693.c
··· 294 294 return ret; 295 295 } 296 296 297 - static int max77693_i2c_remove(struct i2c_client *i2c) 297 + static void max77693_i2c_remove(struct i2c_client *i2c) 298 298 { 299 299 struct max77693_dev *max77693 = i2c_get_clientdata(i2c); 300 300 ··· 307 307 308 308 i2c_unregister_device(max77693->i2c_muic); 309 309 i2c_unregister_device(max77693->i2c_haptic); 310 - 311 - return 0; 312 310 } 313 311 314 312 static const struct i2c_device_id max77693_i2c_id[] = {
+1 -3
drivers/mfd/max8907.c
··· 282 282 return ret; 283 283 } 284 284 285 - static int max8907_i2c_remove(struct i2c_client *i2c) 285 + static void max8907_i2c_remove(struct i2c_client *i2c) 286 286 { 287 287 struct max8907 *max8907 = i2c_get_clientdata(i2c); 288 288 ··· 293 293 regmap_del_irq_chip(max8907->i2c_gen->irq, max8907->irqc_chg); 294 294 295 295 i2c_unregister_device(max8907->i2c_rtc); 296 - 297 - return 0; 298 296 } 299 297 300 298 #ifdef CONFIG_OF
+1 -2
drivers/mfd/max8925-i2c.c
··· 198 198 return 0; 199 199 } 200 200 201 - static int max8925_remove(struct i2c_client *client) 201 + static void max8925_remove(struct i2c_client *client) 202 202 { 203 203 struct max8925_chip *chip = i2c_get_clientdata(client); 204 204 205 205 max8925_device_exit(chip); 206 206 i2c_unregister_device(chip->adc); 207 207 i2c_unregister_device(chip->rtc); 208 - return 0; 209 208 } 210 209 211 210 #ifdef CONFIG_PM_SLEEP
+1 -2
drivers/mfd/mc13xxx-i2c.c
··· 85 85 return mc13xxx_common_init(&client->dev); 86 86 } 87 87 88 - static int mc13xxx_i2c_remove(struct i2c_client *client) 88 + static void mc13xxx_i2c_remove(struct i2c_client *client) 89 89 { 90 90 mc13xxx_common_exit(&client->dev); 91 - return 0; 92 91 } 93 92 94 93 static struct i2c_driver mc13xxx_i2c_driver = {
+1 -2
drivers/mfd/menelaus.c
··· 1222 1222 return err; 1223 1223 } 1224 1224 1225 - static int menelaus_remove(struct i2c_client *client) 1225 + static void menelaus_remove(struct i2c_client *client) 1226 1226 { 1227 1227 struct menelaus_chip *menelaus = i2c_get_clientdata(client); 1228 1228 1229 1229 free_irq(client->irq, menelaus); 1230 1230 flush_work(&menelaus->work); 1231 1231 the_menelaus = NULL; 1232 - return 0; 1233 1232 } 1234 1233 1235 1234 static const struct i2c_device_id menelaus_id[] = {
+1 -3
drivers/mfd/ntxec.c
··· 239 239 return res; 240 240 } 241 241 242 - static int ntxec_remove(struct i2c_client *client) 242 + static void ntxec_remove(struct i2c_client *client) 243 243 { 244 244 if (client == poweroff_restart_client) { 245 245 poweroff_restart_client = NULL; 246 246 pm_power_off = NULL; 247 247 unregister_restart_handler(&ntxec_restart_handler); 248 248 } 249 - 250 - return 0; 251 249 } 252 250 253 251 static const struct of_device_id of_ntxec_match_table[] = {
+1 -3
drivers/mfd/palmas.c
··· 700 700 return ret; 701 701 } 702 702 703 - static int palmas_i2c_remove(struct i2c_client *i2c) 703 + static void palmas_i2c_remove(struct i2c_client *i2c) 704 704 { 705 705 struct palmas *palmas = i2c_get_clientdata(i2c); 706 706 int i; ··· 716 716 pm_power_off = NULL; 717 717 palmas_dev = NULL; 718 718 } 719 - 720 - return 0; 721 719 } 722 720 723 721 static const struct i2c_device_id palmas_i2c_id[] = {
+1 -3
drivers/mfd/pcf50633-core.c
··· 273 273 return ret; 274 274 } 275 275 276 - static int pcf50633_remove(struct i2c_client *client) 276 + static void pcf50633_remove(struct i2c_client *client) 277 277 { 278 278 struct pcf50633 *pcf = i2c_get_clientdata(client); 279 279 int i; ··· 289 289 290 290 for (i = 0; i < PCF50633_NUM_REGULATORS; i++) 291 291 platform_device_unregister(pcf->regulator_pdev[i]); 292 - 293 - return 0; 294 292 } 295 293 296 294 static const struct i2c_device_id pcf50633_id_table[] = {
+1 -3
drivers/mfd/retu-mfd.c
··· 287 287 return 0; 288 288 } 289 289 290 - static int retu_remove(struct i2c_client *i2c) 290 + static void retu_remove(struct i2c_client *i2c) 291 291 { 292 292 struct retu_dev *rdev = i2c_get_clientdata(i2c); 293 293 ··· 297 297 } 298 298 mfd_remove_devices(rdev->dev); 299 299 regmap_del_irq_chip(i2c->irq, rdev->irq_data); 300 - 301 - return 0; 302 300 } 303 301 304 302 static const struct i2c_device_id retu_id[] = {
+1 -3
drivers/mfd/rk808.c
··· 778 778 return ret; 779 779 } 780 780 781 - static int rk808_remove(struct i2c_client *client) 781 + static void rk808_remove(struct i2c_client *client) 782 782 { 783 783 struct rk808 *rk808 = i2c_get_clientdata(client); 784 784 ··· 792 792 pm_power_off = NULL; 793 793 794 794 unregister_restart_handler(&rk808_restart_handler); 795 - 796 - return 0; 797 795 } 798 796 799 797 static int __maybe_unused rk8xx_suspend(struct device *dev)
+1 -3
drivers/mfd/rn5t618.c
··· 241 241 return rn5t618_irq_init(priv); 242 242 } 243 243 244 - static int rn5t618_i2c_remove(struct i2c_client *i2c) 244 + static void rn5t618_i2c_remove(struct i2c_client *i2c) 245 245 { 246 246 if (i2c == rn5t618_pm_power_off) { 247 247 rn5t618_pm_power_off = NULL; ··· 249 249 } 250 250 251 251 unregister_restart_handler(&rn5t618_restart_handler); 252 - 253 - return 0; 254 252 } 255 253 256 254 static int __maybe_unused rn5t618_i2c_suspend(struct device *dev)
+1 -3
drivers/mfd/rsmu_i2c.c
··· 146 146 return rsmu_core_init(rsmu); 147 147 } 148 148 149 - static int rsmu_i2c_remove(struct i2c_client *client) 149 + static void rsmu_i2c_remove(struct i2c_client *client) 150 150 { 151 151 struct rsmu_ddata *rsmu = i2c_get_clientdata(client); 152 152 153 153 rsmu_core_exit(rsmu); 154 - 155 - return 0; 156 154 } 157 155 158 156 static const struct i2c_device_id rsmu_i2c_id[] = {
+1 -3
drivers/mfd/rt4831.c
··· 87 87 ARRAY_SIZE(rt4831_subdevs), NULL, 0, NULL); 88 88 } 89 89 90 - static int rt4831_remove(struct i2c_client *client) 90 + static void rt4831_remove(struct i2c_client *client) 91 91 { 92 92 struct regmap *regmap = dev_get_regmap(&client->dev, NULL); 93 93 int ret; ··· 96 96 ret = regmap_update_bits(regmap, RT4831_REG_ENABLE, RT4831_RESET_MASK, RT4831_RESET_MASK); 97 97 if (ret) 98 98 dev_warn(&client->dev, "Failed to disable outputs (%pe)\n", ERR_PTR(ret)); 99 - 100 - return 0; 101 99 } 102 100 103 101 static const struct of_device_id __maybe_unused rt4831_of_match[] = {
+1 -3
drivers/mfd/si476x-i2c.c
··· 835 835 return rval; 836 836 } 837 837 838 - static int si476x_core_remove(struct i2c_client *client) 838 + static void si476x_core_remove(struct i2c_client *client) 839 839 { 840 840 struct si476x_core *core = i2c_get_clientdata(client); 841 841 ··· 851 851 852 852 if (gpio_is_valid(core->gpio_reset)) 853 853 gpio_free(core->gpio_reset); 854 - 855 - return 0; 856 854 } 857 855 858 856
+1 -3
drivers/mfd/stmfx.c
··· 467 467 return ret; 468 468 } 469 469 470 - static int stmfx_remove(struct i2c_client *client) 470 + static void stmfx_remove(struct i2c_client *client) 471 471 { 472 472 stmfx_irq_exit(client); 473 473 474 474 stmfx_chip_exit(client); 475 - 476 - return 0; 477 475 } 478 476 479 477 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/mfd/stmpe-i2c.c
··· 91 91 return stmpe_probe(&i2c_ci, partnum); 92 92 } 93 93 94 - static int stmpe_i2c_remove(struct i2c_client *i2c) 94 + static void stmpe_i2c_remove(struct i2c_client *i2c) 95 95 { 96 96 struct stmpe *stmpe = dev_get_drvdata(&i2c->dev); 97 97 98 98 stmpe_remove(stmpe); 99 - 100 - return 0; 101 99 } 102 100 103 101 static const struct i2c_device_id stmpe_i2c_id[] = {
+1 -3
drivers/mfd/tc3589x.c
··· 429 429 return 0; 430 430 } 431 431 432 - static int tc3589x_remove(struct i2c_client *client) 432 + static void tc3589x_remove(struct i2c_client *client) 433 433 { 434 434 struct tc3589x *tc3589x = i2c_get_clientdata(client); 435 435 436 436 mfd_remove_devices(tc3589x->dev); 437 - 438 - return 0; 439 437 } 440 438 441 439 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/mfd/tps6105x.c
··· 179 179 return ret; 180 180 } 181 181 182 - static int tps6105x_remove(struct i2c_client *client) 182 + static void tps6105x_remove(struct i2c_client *client) 183 183 { 184 184 struct tps6105x *tps6105x = i2c_get_clientdata(client); 185 185 ··· 189 189 regmap_update_bits(tps6105x->regmap, TPS6105X_REG_0, 190 190 TPS6105X_REG0_MODE_MASK, 191 191 TPS6105X_MODE_SHUTDOWN << TPS6105X_REG0_MODE_SHIFT); 192 - 193 - return 0; 194 192 } 195 193 196 194 static const struct i2c_device_id tps6105x_id[] = {
+1 -2
drivers/mfd/tps65010.c
··· 501 501 502 502 static struct tps65010 *the_tps; 503 503 504 - static int tps65010_remove(struct i2c_client *client) 504 + static void tps65010_remove(struct i2c_client *client) 505 505 { 506 506 struct tps65010 *tps = i2c_get_clientdata(client); 507 507 struct tps65010_board *board = dev_get_platdata(&client->dev); ··· 517 517 cancel_delayed_work_sync(&tps->work); 518 518 debugfs_remove(tps->file); 519 519 the_tps = NULL; 520 - return 0; 521 520 } 522 521 523 522 static int tps65010_probe(struct i2c_client *client,
+1 -3
drivers/mfd/tps65086.c
··· 111 111 return ret; 112 112 } 113 113 114 - static int tps65086_remove(struct i2c_client *client) 114 + static void tps65086_remove(struct i2c_client *client) 115 115 { 116 116 struct tps65086 *tps = i2c_get_clientdata(client); 117 117 118 118 if (tps->irq > 0) 119 119 regmap_del_irq_chip(tps->irq, tps->irq_data); 120 - 121 - return 0; 122 120 } 123 121 124 122 static const struct i2c_device_id tps65086_id_table[] = {
+1 -3
drivers/mfd/tps65217.c
··· 374 374 return 0; 375 375 } 376 376 377 - static int tps65217_remove(struct i2c_client *client) 377 + static void tps65217_remove(struct i2c_client *client) 378 378 { 379 379 struct tps65217 *tps = i2c_get_clientdata(client); 380 380 unsigned int virq; ··· 388 388 389 389 irq_domain_remove(tps->irq_domain); 390 390 tps->irq_domain = NULL; 391 - 392 - return 0; 393 391 } 394 392 395 393 static const struct i2c_device_id tps65217_id_table[] = {
+1 -2
drivers/mfd/tps6586x.c
··· 579 579 return ret; 580 580 } 581 581 582 - static int tps6586x_i2c_remove(struct i2c_client *client) 582 + static void tps6586x_i2c_remove(struct i2c_client *client) 583 583 { 584 584 struct tps6586x *tps6586x = i2c_get_clientdata(client); 585 585 ··· 587 587 mfd_remove_devices(tps6586x->dev); 588 588 if (client->irq) 589 589 free_irq(client->irq, tps6586x); 590 - return 0; 591 590 } 592 591 593 592 static int __maybe_unused tps6586x_i2c_suspend(struct device *dev)
+1 -3
drivers/mfd/tps65912-i2c.c
··· 43 43 return tps65912_device_init(tps); 44 44 } 45 45 46 - static int tps65912_i2c_remove(struct i2c_client *client) 46 + static void tps65912_i2c_remove(struct i2c_client *client) 47 47 { 48 48 struct tps65912 *tps = i2c_get_clientdata(client); 49 49 50 50 tps65912_device_exit(tps); 51 - 52 - return 0; 53 51 } 54 52 55 53 static const struct i2c_device_id tps65912_i2c_id_table[] = {
+1 -2
drivers/mfd/twl-core.c
··· 727 727 /*----------------------------------------------------------------------*/ 728 728 729 729 730 - static int twl_remove(struct i2c_client *client) 730 + static void twl_remove(struct i2c_client *client) 731 731 { 732 732 unsigned i, num_slaves; 733 733 ··· 745 745 twl->client = NULL; 746 746 } 747 747 twl_priv->ready = false; 748 - return 0; 749 748 } 750 749 751 750 static struct of_dev_auxdata twl_auxdata_lookup[] = {
+1 -3
drivers/mfd/twl6040.c
··· 808 808 return ret; 809 809 } 810 810 811 - static int twl6040_remove(struct i2c_client *client) 811 + static void twl6040_remove(struct i2c_client *client) 812 812 { 813 813 struct twl6040 *twl6040 = i2c_get_clientdata(client); 814 814 ··· 820 820 mfd_remove_devices(&client->dev); 821 821 822 822 regulator_bulk_disable(TWL6040_NUM_SUPPLIES, twl6040->supplies); 823 - 824 - return 0; 825 823 } 826 824 827 825 static const struct i2c_device_id twl6040_i2c_id[] = {
+1 -3
drivers/mfd/wm8994-core.c
··· 657 657 return wm8994_device_init(wm8994, i2c->irq); 658 658 } 659 659 660 - static int wm8994_i2c_remove(struct i2c_client *i2c) 660 + static void wm8994_i2c_remove(struct i2c_client *i2c) 661 661 { 662 662 struct wm8994 *wm8994 = i2c_get_clientdata(i2c); 663 663 664 664 wm8994_device_exit(wm8994); 665 - 666 - return 0; 667 665 } 668 666 669 667 static const struct i2c_device_id wm8994_i2c_id[] = {
+1 -2
drivers/misc/ad525x_dpot-i2c.c
··· 67 67 return ad_dpot_probe(&client->dev, &bdata, id->driver_data, id->name); 68 68 } 69 69 70 - static int ad_dpot_i2c_remove(struct i2c_client *client) 70 + static void ad_dpot_i2c_remove(struct i2c_client *client) 71 71 { 72 72 ad_dpot_remove(&client->dev); 73 - return 0; 74 73 } 75 74 76 75 static const struct i2c_device_id ad_dpot_id[] = {
+1 -2
drivers/misc/apds9802als.c
··· 242 242 return res; 243 243 } 244 244 245 - static int apds9802als_remove(struct i2c_client *client) 245 + static void apds9802als_remove(struct i2c_client *client) 246 246 { 247 247 struct als_data *data = i2c_get_clientdata(client); 248 248 ··· 256 256 pm_runtime_put_noidle(&client->dev); 257 257 258 258 kfree(data); 259 - return 0; 260 259 } 261 260 262 261 #ifdef CONFIG_PM
+1 -2
drivers/misc/apds990x.c
··· 1185 1185 return err; 1186 1186 } 1187 1187 1188 - static int apds990x_remove(struct i2c_client *client) 1188 + static void apds990x_remove(struct i2c_client *client) 1189 1189 { 1190 1190 struct apds990x_chip *chip = i2c_get_clientdata(client); 1191 1191 ··· 1205 1205 regulator_bulk_free(ARRAY_SIZE(chip->regs), chip->regs); 1206 1206 1207 1207 kfree(chip); 1208 - return 0; 1209 1208 } 1210 1209 1211 1210 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/misc/bh1770glc.c
··· 1280 1280 return err; 1281 1281 } 1282 1282 1283 - static int bh1770_remove(struct i2c_client *client) 1283 + static void bh1770_remove(struct i2c_client *client) 1284 1284 { 1285 1285 struct bh1770_chip *chip = i2c_get_clientdata(client); 1286 1286 ··· 1299 1299 1300 1300 pm_runtime_disable(&client->dev); 1301 1301 pm_runtime_set_suspended(&client->dev); 1302 - 1303 - return 0; 1304 1302 } 1305 1303 1306 1304 #ifdef CONFIG_PM_SLEEP
+1 -2
drivers/misc/ds1682.c
··· 228 228 return rc; 229 229 } 230 230 231 - static int ds1682_remove(struct i2c_client *client) 231 + static void ds1682_remove(struct i2c_client *client) 232 232 { 233 233 sysfs_remove_bin_file(&client->dev.kobj, &ds1682_eeprom_attr); 234 234 sysfs_remove_group(&client->dev.kobj, &ds1682_group); 235 - return 0; 236 235 } 237 236 238 237 static const struct i2c_device_id ds1682_id[] = {
+1 -3
drivers/misc/eeprom/at24.c
··· 791 791 return 0; 792 792 } 793 793 794 - static int at24_remove(struct i2c_client *client) 794 + static void at24_remove(struct i2c_client *client) 795 795 { 796 796 struct at24_data *at24 = i2c_get_clientdata(client); 797 797 ··· 801 801 regulator_disable(at24->vcc_reg); 802 802 pm_runtime_set_suspended(&client->dev); 803 803 } 804 - 805 - return 0; 806 804 } 807 805 808 806 static int __maybe_unused at24_suspend(struct device *dev)
+1 -3
drivers/misc/eeprom/ee1004.c
··· 219 219 return err; 220 220 } 221 221 222 - static int ee1004_remove(struct i2c_client *client) 222 + static void ee1004_remove(struct i2c_client *client) 223 223 { 224 224 /* Remove page select clients if this is the last device */ 225 225 mutex_lock(&ee1004_bus_lock); 226 226 ee1004_cleanup(EE1004_NUM_PAGES); 227 227 mutex_unlock(&ee1004_bus_lock); 228 - 229 - return 0; 230 228 } 231 229 232 230 /*-------------------------------------------------------------------------*/
+1 -3
drivers/misc/eeprom/eeprom.c
··· 183 183 return sysfs_create_bin_file(&client->dev.kobj, &eeprom_attr); 184 184 } 185 185 186 - static int eeprom_remove(struct i2c_client *client) 186 + static void eeprom_remove(struct i2c_client *client) 187 187 { 188 188 sysfs_remove_bin_file(&client->dev.kobj, &eeprom_attr); 189 - 190 - return 0; 191 189 } 192 190 193 191 static const struct i2c_device_id eeprom_id[] = {
+1 -3
drivers/misc/eeprom/idt_89hpesx.c
··· 1405 1405 /* 1406 1406 * idt_remove() - IDT 89HPESx driver remove() callback method 1407 1407 */ 1408 - static int idt_remove(struct i2c_client *client) 1408 + static void idt_remove(struct i2c_client *client) 1409 1409 { 1410 1410 struct idt_89hpesx_dev *pdev = i2c_get_clientdata(client); 1411 1411 ··· 1417 1417 1418 1418 /* Discard driver data structure */ 1419 1419 idt_free_pdev(pdev); 1420 - 1421 - return 0; 1422 1420 } 1423 1421 1424 1422 /*
+1 -3
drivers/misc/eeprom/max6875.c
··· 173 173 return err; 174 174 } 175 175 176 - static int max6875_remove(struct i2c_client *client) 176 + static void max6875_remove(struct i2c_client *client) 177 177 { 178 178 struct max6875_data *data = i2c_get_clientdata(client); 179 179 ··· 181 181 182 182 sysfs_remove_bin_file(&client->dev.kobj, &user_eeprom_attr); 183 183 kfree(data); 184 - 185 - return 0; 186 184 } 187 185 188 186 static const struct i2c_device_id max6875_id[] = {
+1 -2
drivers/misc/hmc6352.c
··· 116 116 return 0; 117 117 } 118 118 119 - static int hmc6352_remove(struct i2c_client *client) 119 + static void hmc6352_remove(struct i2c_client *client) 120 120 { 121 121 sysfs_remove_group(&client->dev.kobj, &m_compass_gr); 122 - return 0; 123 122 } 124 123 125 124 static const struct i2c_device_id hmc6352_id[] = {
+2 -3
drivers/misc/ics932s401.c
··· 93 93 const struct i2c_device_id *id); 94 94 static int ics932s401_detect(struct i2c_client *client, 95 95 struct i2c_board_info *info); 96 - static int ics932s401_remove(struct i2c_client *client); 96 + static void ics932s401_remove(struct i2c_client *client); 97 97 98 98 static const struct i2c_device_id ics932s401_id[] = { 99 99 { "ics932s401", 0 }, ··· 460 460 return err; 461 461 } 462 462 463 - static int ics932s401_remove(struct i2c_client *client) 463 + static void ics932s401_remove(struct i2c_client *client) 464 464 { 465 465 struct ics932s401_data *data = i2c_get_clientdata(client); 466 466 467 467 sysfs_remove_group(&client->dev.kobj, &data->attrs); 468 468 kfree(data); 469 - return 0; 470 469 } 471 470 472 471 module_i2c_driver(ics932s401_driver);
+1 -2
drivers/misc/isl29003.c
··· 410 410 return err; 411 411 } 412 412 413 - static int isl29003_remove(struct i2c_client *client) 413 + static void isl29003_remove(struct i2c_client *client) 414 414 { 415 415 sysfs_remove_group(&client->dev.kobj, &isl29003_attr_group); 416 416 isl29003_set_power_state(client, 0); 417 417 kfree(i2c_get_clientdata(client)); 418 - return 0; 419 418 } 420 419 421 420 #ifdef CONFIG_PM_SLEEP
+1 -2
drivers/misc/isl29020.c
··· 171 171 return res; 172 172 } 173 173 174 - static int isl29020_remove(struct i2c_client *client) 174 + static void isl29020_remove(struct i2c_client *client) 175 175 { 176 176 pm_runtime_disable(&client->dev); 177 177 sysfs_remove_group(&client->dev.kobj, &m_als_gr); 178 - return 0; 179 178 } 180 179 181 180 static const struct i2c_device_id isl29020_id[] = {
+1 -2
drivers/misc/lis3lv02d/lis3lv02d_i2c.c
··· 177 177 return ret; 178 178 } 179 179 180 - static int lis3lv02d_i2c_remove(struct i2c_client *client) 180 + static void lis3lv02d_i2c_remove(struct i2c_client *client) 181 181 { 182 182 struct lis3lv02d *lis3 = i2c_get_clientdata(client); 183 183 struct lis3lv02d_platform_data *pdata = client->dev.platform_data; ··· 190 190 191 191 regulator_bulk_free(ARRAY_SIZE(lis3->regulators), 192 192 lis3_dev.regulators); 193 - return 0; 194 193 } 195 194 196 195 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/misc/tsl2550.c
··· 389 389 return err; 390 390 } 391 391 392 - static int tsl2550_remove(struct i2c_client *client) 392 + static void tsl2550_remove(struct i2c_client *client) 393 393 { 394 394 sysfs_remove_group(&client->dev.kobj, &tsl2550_attr_group); 395 395 ··· 397 397 tsl2550_set_power_state(client, 0); 398 398 399 399 kfree(i2c_get_clientdata(client)); 400 - 401 - return 0; 402 400 } 403 401 404 402 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/mtd/maps/pismo.c
··· 195 195 } 196 196 } 197 197 198 - static int pismo_remove(struct i2c_client *client) 198 + static void pismo_remove(struct i2c_client *client) 199 199 { 200 200 struct pismo_data *pismo = i2c_get_clientdata(client); 201 201 int i; ··· 204 204 platform_device_unregister(pismo->dev[i]); 205 205 206 206 kfree(pismo); 207 - 208 - return 0; 209 207 } 210 208 211 209 static int pismo_probe(struct i2c_client *client,
+2 -4
drivers/net/dsa/lan9303_i2c.c
··· 65 65 return 0; 66 66 } 67 67 68 - static int lan9303_i2c_remove(struct i2c_client *client) 68 + static void lan9303_i2c_remove(struct i2c_client *client) 69 69 { 70 70 struct lan9303_i2c *sw_dev = i2c_get_clientdata(client); 71 71 72 72 if (!sw_dev) 73 - return 0; 73 + return; 74 74 75 75 lan9303_remove(&sw_dev->chip); 76 76 77 77 i2c_set_clientdata(client, NULL); 78 - 79 - return 0; 80 78 } 81 79 82 80 static void lan9303_i2c_shutdown(struct i2c_client *client)
+1 -3
drivers/net/dsa/microchip/ksz9477_i2c.c
··· 52 52 return 0; 53 53 } 54 54 55 - static int ksz9477_i2c_remove(struct i2c_client *i2c) 55 + static void ksz9477_i2c_remove(struct i2c_client *i2c) 56 56 { 57 57 struct ksz_device *dev = i2c_get_clientdata(i2c); 58 58 ··· 60 60 ksz_switch_remove(dev); 61 61 62 62 i2c_set_clientdata(i2c, NULL); 63 - 64 - return 0; 65 63 } 66 64 67 65 static void ksz9477_i2c_shutdown(struct i2c_client *i2c)
+2 -4
drivers/net/dsa/xrs700x/xrs700x_i2c.c
··· 105 105 return 0; 106 106 } 107 107 108 - static int xrs700x_i2c_remove(struct i2c_client *i2c) 108 + static void xrs700x_i2c_remove(struct i2c_client *i2c) 109 109 { 110 110 struct xrs700x *priv = i2c_get_clientdata(i2c); 111 111 112 112 if (!priv) 113 - return 0; 113 + return; 114 114 115 115 xrs700x_switch_remove(priv); 116 116 117 117 i2c_set_clientdata(i2c, NULL); 118 - 119 - return 0; 120 118 } 121 119 122 120 static void xrs700x_i2c_shutdown(struct i2c_client *i2c)
+1 -3
drivers/net/ethernet/mellanox/mlxsw/i2c.c
··· 656 656 return err; 657 657 } 658 658 659 - static int mlxsw_i2c_remove(struct i2c_client *client) 659 + static void mlxsw_i2c_remove(struct i2c_client *client) 660 660 { 661 661 struct mlxsw_i2c *mlxsw_i2c = i2c_get_clientdata(client); 662 662 663 663 mlxsw_core_bus_device_unregister(mlxsw_i2c->core, false); 664 664 mutex_destroy(&mlxsw_i2c->cmd.lock); 665 - 666 - return 0; 667 665 } 668 666 669 667 int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver)
+1 -3
drivers/net/mctp/mctp-i2c.c
··· 986 986 return rc; 987 987 } 988 988 989 - static int mctp_i2c_remove(struct i2c_client *client) 989 + static void mctp_i2c_remove(struct i2c_client *client) 990 990 { 991 991 struct mctp_i2c_client *mcli = i2c_get_clientdata(client); 992 992 struct mctp_i2c_dev *midev = NULL, *tmp = NULL; ··· 999 999 1000 1000 mctp_i2c_free_client(mcli); 1001 1001 mutex_unlock(&driver_clients_lock); 1002 - /* Callers ignore return code */ 1003 - return 0; 1004 1002 } 1005 1003 1006 1004 /* We look for a 'mctp-controller' property on I2C busses as they are
+1 -3
drivers/nfc/fdp/i2c.c
··· 336 336 return 0; 337 337 } 338 338 339 - static int fdp_nci_i2c_remove(struct i2c_client *client) 339 + static void fdp_nci_i2c_remove(struct i2c_client *client) 340 340 { 341 341 struct fdp_i2c_phy *phy = i2c_get_clientdata(client); 342 342 343 343 fdp_nci_remove(phy->ndev); 344 344 fdp_nci_i2c_disable(phy); 345 - 346 - return 0; 347 345 } 348 346 349 347 static const struct acpi_device_id fdp_nci_i2c_acpi_match[] = {
+1 -3
drivers/nfc/microread/i2c.c
··· 268 268 return r; 269 269 } 270 270 271 - static int microread_i2c_remove(struct i2c_client *client) 271 + static void microread_i2c_remove(struct i2c_client *client) 272 272 { 273 273 struct microread_i2c_phy *phy = i2c_get_clientdata(client); 274 274 275 275 microread_remove(phy->hdev); 276 276 277 277 free_irq(client->irq, phy); 278 - 279 - return 0; 280 278 } 281 279 282 280 static const struct i2c_device_id microread_i2c_id[] = {
+1 -3
drivers/nfc/nfcmrvl/i2c.c
··· 231 231 return 0; 232 232 } 233 233 234 - static int nfcmrvl_i2c_remove(struct i2c_client *client) 234 + static void nfcmrvl_i2c_remove(struct i2c_client *client) 235 235 { 236 236 struct nfcmrvl_i2c_drv_data *drv_data = i2c_get_clientdata(client); 237 237 238 238 nfcmrvl_nci_unregister_dev(drv_data->priv); 239 - 240 - return 0; 241 239 } 242 240 243 241
+1 -3
drivers/nfc/nxp-nci/i2c.c
··· 314 314 return r; 315 315 } 316 316 317 - static int nxp_nci_i2c_remove(struct i2c_client *client) 317 + static void nxp_nci_i2c_remove(struct i2c_client *client) 318 318 { 319 319 struct nxp_nci_i2c_phy *phy = i2c_get_clientdata(client); 320 320 321 321 nxp_nci_remove(phy->ndev); 322 322 free_irq(client->irq, phy); 323 - 324 - return 0; 325 323 } 326 324 327 325 static const struct i2c_device_id nxp_nci_i2c_id_table[] = {
+1 -3
drivers/nfc/pn533/i2c.c
··· 227 227 return r; 228 228 } 229 229 230 - static int pn533_i2c_remove(struct i2c_client *client) 230 + static void pn533_i2c_remove(struct i2c_client *client) 231 231 { 232 232 struct pn533_i2c_phy *phy = i2c_get_clientdata(client); 233 233 ··· 235 235 236 236 pn53x_unregister_nfc(phy->priv); 237 237 pn53x_common_clean(phy->priv); 238 - 239 - return 0; 240 238 } 241 239 242 240 static const struct of_device_id of_pn533_i2c_match[] __maybe_unused = {
+1 -3
drivers/nfc/pn544/i2c.c
··· 928 928 return 0; 929 929 } 930 930 931 - static int pn544_hci_i2c_remove(struct i2c_client *client) 931 + static void pn544_hci_i2c_remove(struct i2c_client *client) 932 932 { 933 933 struct pn544_i2c_phy *phy = i2c_get_clientdata(client); 934 934 ··· 940 940 941 941 if (phy->powered) 942 942 pn544_hci_i2c_disable(phy); 943 - 944 - return 0; 945 943 } 946 944 947 945 static const struct of_device_id of_pn544_i2c_match[] __maybe_unused = {
+1 -3
drivers/nfc/s3fwrn5/i2c.c
··· 246 246 return ret; 247 247 } 248 248 249 - static int s3fwrn5_i2c_remove(struct i2c_client *client) 249 + static void s3fwrn5_i2c_remove(struct i2c_client *client) 250 250 { 251 251 struct s3fwrn5_i2c_phy *phy = i2c_get_clientdata(client); 252 252 253 253 s3fwrn5_remove(phy->common.ndev); 254 254 clk_disable_unprepare(phy->clk); 255 - 256 - return 0; 257 255 } 258 256 259 257 static const struct i2c_device_id s3fwrn5_i2c_id_table[] = {
+1 -3
drivers/nfc/st-nci/i2c.c
··· 250 250 return r; 251 251 } 252 252 253 - static int st_nci_i2c_remove(struct i2c_client *client) 253 + static void st_nci_i2c_remove(struct i2c_client *client) 254 254 { 255 255 struct st_nci_i2c_phy *phy = i2c_get_clientdata(client); 256 256 257 257 ndlc_remove(phy->ndlc); 258 - 259 - return 0; 260 258 } 261 259 262 260 static const struct i2c_device_id st_nci_i2c_id_table[] = {
+1 -3
drivers/nfc/st21nfca/i2c.c
··· 562 562 return r; 563 563 } 564 564 565 - static int st21nfca_hci_i2c_remove(struct i2c_client *client) 565 + static void st21nfca_hci_i2c_remove(struct i2c_client *client) 566 566 { 567 567 struct st21nfca_i2c_phy *phy = i2c_get_clientdata(client); 568 568 ··· 571 571 if (phy->powered) 572 572 st21nfca_hci_i2c_disable(phy); 573 573 kfree_skb(phy->pending_skb); 574 - 575 - return 0; 576 574 } 577 575 578 576 static const struct i2c_device_id st21nfca_hci_i2c_id_table[] = {
+2 -4
drivers/of/unittest.c
··· 2524 2524 return 0; 2525 2525 }; 2526 2526 2527 - static int unittest_i2c_dev_remove(struct i2c_client *client) 2527 + static void unittest_i2c_dev_remove(struct i2c_client *client) 2528 2528 { 2529 2529 struct device *dev = &client->dev; 2530 2530 struct device_node *np = client->dev.of_node; 2531 2531 2532 2532 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); 2533 - return 0; 2534 2533 } 2535 2534 2536 2535 static const struct i2c_device_id unittest_i2c_dev_id[] = { ··· 2600 2601 return 0; 2601 2602 }; 2602 2603 2603 - static int unittest_i2c_mux_remove(struct i2c_client *client) 2604 + static void unittest_i2c_mux_remove(struct i2c_client *client) 2604 2605 { 2605 2606 struct device *dev = &client->dev; 2606 2607 struct device_node *np = client->dev.of_node; ··· 2608 2609 2609 2610 dev_dbg(dev, "%s for node @%pOF\n", __func__, np); 2610 2611 i2c_mux_del_adapters(muxc); 2611 - return 0; 2612 2612 } 2613 2613 2614 2614 static const struct i2c_device_id unittest_i2c_mux_id[] = {
+1 -3
drivers/platform/chrome/cros_ec_i2c.c
··· 317 317 return 0; 318 318 } 319 319 320 - static int cros_ec_i2c_remove(struct i2c_client *client) 320 + static void cros_ec_i2c_remove(struct i2c_client *client) 321 321 { 322 322 struct cros_ec_device *ec_dev = i2c_get_clientdata(client); 323 323 324 324 cros_ec_unregister(ec_dev); 325 - 326 - return 0; 327 325 } 328 326 329 327 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/platform/surface/surface3_power.c
··· 554 554 return error; 555 555 } 556 556 557 - static int mshw0011_remove(struct i2c_client *client) 557 + static void mshw0011_remove(struct i2c_client *client) 558 558 { 559 559 struct mshw0011_data *cdata = i2c_get_clientdata(client); 560 560 ··· 564 564 kthread_stop(cdata->poll_task); 565 565 566 566 i2c_unregister_device(cdata->bat0); 567 - 568 - return 0; 569 567 } 570 568 571 569 static const struct acpi_device_id mshw0011_acpi_match[] = {
+1 -3
drivers/platform/x86/asus-tf103c-dock.c
··· 878 878 return 0; 879 879 } 880 880 881 - static int tf103c_dock_remove(struct i2c_client *client) 881 + static void tf103c_dock_remove(struct i2c_client *client) 882 882 { 883 883 struct tf103c_dock_data *dock = i2c_get_clientdata(client); 884 884 885 885 tf103c_dock_stop_hpd(dock); 886 886 tf103c_dock_disable(dock); 887 - 888 - return 0; 889 887 } 890 888 891 889 static int __maybe_unused tf103c_dock_suspend(struct device *dev)
+1 -3
drivers/platform/x86/intel/int3472/tps68470.c
··· 178 178 return ret; 179 179 } 180 180 181 - static int skl_int3472_tps68470_remove(struct i2c_client *client) 181 + static void skl_int3472_tps68470_remove(struct i2c_client *client) 182 182 { 183 183 const struct int3472_tps68470_board_data *board_data; 184 184 185 185 board_data = int3472_tps68470_get_board_data(dev_name(&client->dev)); 186 186 if (board_data) 187 187 gpiod_remove_lookup_table(board_data->tps68470_gpio_lookup_table); 188 - 189 - return 0; 190 188 } 191 189 192 190 static const struct acpi_device_id int3472_device_id[] = {
+1 -3
drivers/power/supply/bq2415x_charger.c
··· 1696 1696 1697 1697 /* main bq2415x remove function */ 1698 1698 1699 - static int bq2415x_remove(struct i2c_client *client) 1699 + static void bq2415x_remove(struct i2c_client *client) 1700 1700 { 1701 1701 struct bq2415x_device *bq = i2c_get_clientdata(client); 1702 1702 ··· 1715 1715 dev_info(bq->dev, "driver unregistered\n"); 1716 1716 1717 1717 kfree(bq->name); 1718 - 1719 - return 0; 1720 1718 } 1721 1719 1722 1720 static const struct i2c_device_id bq2415x_i2c_id_table[] = {
+1 -3
drivers/power/supply/bq24190_charger.c
··· 1901 1901 return ret; 1902 1902 } 1903 1903 1904 - static int bq24190_remove(struct i2c_client *client) 1904 + static void bq24190_remove(struct i2c_client *client) 1905 1905 { 1906 1906 struct bq24190_dev_info *bdi = i2c_get_clientdata(client); 1907 1907 int error; ··· 1918 1918 pm_runtime_put_sync(bdi->dev); 1919 1919 pm_runtime_dont_use_autosuspend(bdi->dev); 1920 1920 pm_runtime_disable(bdi->dev); 1921 - 1922 - return 0; 1923 1921 } 1924 1922 1925 1923 static void bq24190_shutdown(struct i2c_client *client)
+1 -3
drivers/power/supply/bq24257_charger.c
··· 1077 1077 return 0; 1078 1078 } 1079 1079 1080 - static int bq24257_remove(struct i2c_client *client) 1080 + static void bq24257_remove(struct i2c_client *client) 1081 1081 { 1082 1082 struct bq24257_device *bq = i2c_get_clientdata(client); 1083 1083 ··· 1085 1085 cancel_delayed_work_sync(&bq->iilimit_setup_work); 1086 1086 1087 1087 bq24257_field_write(bq, F_RESET, 1); /* reset to defaults */ 1088 - 1089 - return 0; 1090 1088 } 1091 1089 1092 1090 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/power/supply/bq25890_charger.c
··· 1258 1258 return ret; 1259 1259 } 1260 1260 1261 - static int bq25890_remove(struct i2c_client *client) 1261 + static void bq25890_remove(struct i2c_client *client) 1262 1262 { 1263 1263 struct bq25890_device *bq = i2c_get_clientdata(client); 1264 1264 ··· 1269 1269 /* reset all registers to default values */ 1270 1270 bq25890_chip_reset(bq); 1271 1271 } 1272 - 1273 - return 0; 1274 1272 } 1275 1273 1276 1274 static void bq25890_shutdown(struct i2c_client *client)
+1 -3
drivers/power/supply/bq27xxx_battery_i2c.c
··· 205 205 return ret; 206 206 } 207 207 208 - static int bq27xxx_battery_i2c_remove(struct i2c_client *client) 208 + static void bq27xxx_battery_i2c_remove(struct i2c_client *client) 209 209 { 210 210 struct bq27xxx_device_info *di = i2c_get_clientdata(client); 211 211 ··· 214 214 mutex_lock(&battery_mutex); 215 215 idr_remove(&battery_id, di->id); 216 216 mutex_unlock(&battery_mutex); 217 - 218 - return 0; 219 217 } 220 218 221 219 static const struct i2c_device_id bq27xxx_i2c_id_table[] = {
+1 -2
drivers/power/supply/cw2015_battery.c
··· 725 725 726 726 static SIMPLE_DEV_PM_OPS(cw_bat_pm_ops, cw_bat_suspend, cw_bat_resume); 727 727 728 - static int cw_bat_remove(struct i2c_client *client) 728 + static void cw_bat_remove(struct i2c_client *client) 729 729 { 730 730 struct cw_battery *cw_bat = i2c_get_clientdata(client); 731 731 732 732 cancel_delayed_work_sync(&cw_bat->battery_delay_work); 733 733 power_supply_put_battery_info(cw_bat->rk_bat, cw_bat->battery); 734 - return 0; 735 734 } 736 735 737 736 static const struct i2c_device_id cw_bat_id_table[] = {
+1 -3
drivers/power/supply/ds2782_battery.c
··· 312 312 battery->external_power_changed = NULL; 313 313 } 314 314 315 - static int ds278x_battery_remove(struct i2c_client *client) 315 + static void ds278x_battery_remove(struct i2c_client *client) 316 316 { 317 317 struct ds278x_info *info = i2c_get_clientdata(client); 318 318 int id = info->id; ··· 325 325 mutex_lock(&battery_lock); 326 326 idr_remove(&battery_id, id); 327 327 mutex_unlock(&battery_lock); 328 - 329 - return 0; 330 328 } 331 329 332 330 #ifdef CONFIG_PM_SLEEP
+1 -2
drivers/power/supply/lp8727_charger.c
··· 590 590 return 0; 591 591 } 592 592 593 - static int lp8727_remove(struct i2c_client *cl) 593 + static void lp8727_remove(struct i2c_client *cl) 594 594 { 595 595 struct lp8727_chg *pchg = i2c_get_clientdata(cl); 596 596 597 597 lp8727_release_irq(pchg); 598 598 lp8727_unregister_psy(pchg); 599 - return 0; 600 599 } 601 600 602 601 static const struct of_device_id lp8727_dt_ids[] = {
+1 -3
drivers/power/supply/rt5033_battery.c
··· 149 149 return 0; 150 150 } 151 151 152 - static int rt5033_battery_remove(struct i2c_client *client) 152 + static void rt5033_battery_remove(struct i2c_client *client) 153 153 { 154 154 struct rt5033_battery *battery = i2c_get_clientdata(client); 155 155 156 156 power_supply_unregister(battery->psy); 157 - 158 - return 0; 159 157 } 160 158 161 159 static const struct i2c_device_id rt5033_battery_id[] = {
+1 -3
drivers/power/supply/rt9455_charger.c
··· 1698 1698 return ret; 1699 1699 } 1700 1700 1701 - static int rt9455_remove(struct i2c_client *client) 1701 + static void rt9455_remove(struct i2c_client *client) 1702 1702 { 1703 1703 int ret; 1704 1704 struct rt9455_info *info = i2c_get_clientdata(client); ··· 1715 1715 cancel_delayed_work_sync(&info->pwr_rdy_work); 1716 1716 cancel_delayed_work_sync(&info->max_charging_time_work); 1717 1717 cancel_delayed_work_sync(&info->batt_presence_work); 1718 - 1719 - return 0; 1720 1718 } 1721 1719 1722 1720 static const struct i2c_device_id rt9455_i2c_id_table[] = {
+1 -3
drivers/power/supply/smb347-charger.c
··· 1595 1595 return 0; 1596 1596 } 1597 1597 1598 - static int smb347_remove(struct i2c_client *client) 1598 + static void smb347_remove(struct i2c_client *client) 1599 1599 { 1600 1600 struct smb347_charger *smb = i2c_get_clientdata(client); 1601 1601 1602 1602 smb347_usb_vbus_regulator_disable(smb->usb_rdev); 1603 1603 smb347_irq_disable(smb); 1604 - 1605 - return 0; 1606 1604 } 1607 1605 1608 1606 static void smb347_shutdown(struct i2c_client *client)
+1 -3
drivers/power/supply/z2_battery.c
··· 251 251 return ret; 252 252 } 253 253 254 - static int z2_batt_remove(struct i2c_client *client) 254 + static void z2_batt_remove(struct i2c_client *client) 255 255 { 256 256 struct z2_charger *charger = i2c_get_clientdata(client); 257 257 ··· 263 263 free_irq(gpiod_to_irq(charger->charge_gpiod), charger); 264 264 265 265 kfree(charger); 266 - 267 - return 0; 268 266 } 269 267 270 268 #ifdef CONFIG_PM
+1 -3
drivers/pwm/pwm-pca9685.c
··· 598 598 return 0; 599 599 } 600 600 601 - static int pca9685_pwm_remove(struct i2c_client *client) 601 + static void pca9685_pwm_remove(struct i2c_client *client) 602 602 { 603 603 struct pca9685 *pca = i2c_get_clientdata(client); 604 604 ··· 610 610 } 611 611 612 612 pm_runtime_disable(&client->dev); 613 - 614 - return 0; 615 613 } 616 614 617 615 static int __maybe_unused pca9685_pwm_runtime_suspend(struct device *dev)
+1 -2
drivers/regulator/da9121-regulator.c
··· 1164 1164 return ret; 1165 1165 } 1166 1166 1167 - static int da9121_i2c_remove(struct i2c_client *i2c) 1167 + static void da9121_i2c_remove(struct i2c_client *i2c) 1168 1168 { 1169 1169 struct da9121 *chip = i2c_get_clientdata(i2c); 1170 1170 const int mask_all[4] = { 0xFF, 0xFF, 0xFF, 0xFF }; ··· 1176 1176 ret = regmap_bulk_write(chip->regmap, DA9121_REG_SYS_MASK_0, mask_all, 4); 1177 1177 if (ret != 0) 1178 1178 dev_err(chip->dev, "Failed to set IRQ masks: %d\n", ret); 1179 - return 0; 1180 1179 } 1181 1180 1182 1181 static const struct i2c_device_id da9121_i2c_id[] = {
+1 -3
drivers/regulator/lp8755.c
··· 422 422 return ret; 423 423 } 424 424 425 - static int lp8755_remove(struct i2c_client *client) 425 + static void lp8755_remove(struct i2c_client *client) 426 426 { 427 427 int icnt; 428 428 struct lp8755_chip *pchip = i2c_get_clientdata(client); 429 429 430 430 for (icnt = 0; icnt < LP8755_BUCK_MAX; icnt++) 431 431 regmap_write(pchip->regmap, icnt, 0x00); 432 - 433 - return 0; 434 432 } 435 433 436 434 static const struct i2c_device_id lp8755_id[] = {
+1 -3
drivers/regulator/rpi-panel-attiny-regulator.c
··· 381 381 return ret; 382 382 } 383 383 384 - static int attiny_i2c_remove(struct i2c_client *client) 384 + static void attiny_i2c_remove(struct i2c_client *client) 385 385 { 386 386 struct attiny_lcd *state = i2c_get_clientdata(client); 387 387 388 388 mutex_destroy(&state->lock); 389 - 390 - return 0; 391 389 } 392 390 393 391 static const struct of_device_id attiny_dt_ids[] = {
+1 -3
drivers/rtc/rtc-bq32k.c
··· 297 297 return 0; 298 298 } 299 299 300 - static int bq32k_remove(struct i2c_client *client) 300 + static void bq32k_remove(struct i2c_client *client) 301 301 { 302 302 bq32k_sysfs_unregister(&client->dev); 303 - 304 - return 0; 305 303 } 306 304 307 305 static const struct i2c_device_id bq32k_id[] = {
+1 -3
drivers/rtc/rtc-ds1374.c
··· 530 530 return 0; 531 531 } 532 532 533 - static int ds1374_remove(struct i2c_client *client) 533 + static void ds1374_remove(struct i2c_client *client) 534 534 { 535 535 struct ds1374 *ds1374 = i2c_get_clientdata(client); 536 536 ··· 542 542 devm_free_irq(&client->dev, client->irq, client); 543 543 cancel_work_sync(&ds1374->work); 544 544 } 545 - 546 - return 0; 547 545 } 548 546 549 547 #ifdef CONFIG_PM_SLEEP
+1 -2
drivers/rtc/rtc-isl12026.c
··· 472 472 return devm_rtc_register_device(priv->rtc); 473 473 } 474 474 475 - static int isl12026_remove(struct i2c_client *client) 475 + static void isl12026_remove(struct i2c_client *client) 476 476 { 477 477 struct isl12026 *priv = i2c_get_clientdata(client); 478 478 479 479 i2c_unregister_device(priv->nvm_client); 480 - return 0; 481 480 } 482 481 483 482 static const struct of_device_id isl12026_dt_match[] = {
+1 -3
drivers/rtc/rtc-m41t80.c
··· 989 989 return 0; 990 990 } 991 991 992 - static int m41t80_remove(struct i2c_client *client) 992 + static void m41t80_remove(struct i2c_client *client) 993 993 { 994 994 #ifdef CONFIG_RTC_DRV_M41T80_WDT 995 995 struct m41t80_data *clientdata = i2c_get_clientdata(client); ··· 999 999 unregister_reboot_notifier(&wdt_notifier); 1000 1000 } 1001 1001 #endif 1002 - 1003 - return 0; 1004 1002 } 1005 1003 1006 1004 static struct i2c_driver m41t80_driver = {
+1 -2
drivers/rtc/rtc-rs5c372.c
··· 910 910 return err; 911 911 } 912 912 913 - static int rs5c372_remove(struct i2c_client *client) 913 + static void rs5c372_remove(struct i2c_client *client) 914 914 { 915 915 rs5c_sysfs_unregister(&client->dev); 916 - return 0; 917 916 } 918 917 919 918 static struct i2c_driver rs5c372_driver = {
+1 -2
drivers/rtc/rtc-x1205.c
··· 657 657 return 0; 658 658 } 659 659 660 - static int x1205_remove(struct i2c_client *client) 660 + static void x1205_remove(struct i2c_client *client) 661 661 { 662 662 x1205_sysfs_unregister(&client->dev); 663 - return 0; 664 663 } 665 664 666 665 static const struct i2c_device_id x1205_id[] = {
+1 -3
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c
··· 1194 1194 .sensor = &gc0310_sensor_ops, 1195 1195 }; 1196 1196 1197 - static int gc0310_remove(struct i2c_client *client) 1197 + static void gc0310_remove(struct i2c_client *client) 1198 1198 { 1199 1199 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1200 1200 struct gc0310_device *dev = to_gc0310_sensor(sd); ··· 1207 1207 media_entity_cleanup(&dev->sd.entity); 1208 1208 v4l2_ctrl_handler_free(&dev->ctrl_handler); 1209 1209 kfree(dev); 1210 - 1211 - return 0; 1212 1210 } 1213 1211 1214 1212 static int gc0310_probe(struct i2c_client *client)
+1 -3
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
··· 952 952 .sensor = &gc2235_sensor_ops, 953 953 }; 954 954 955 - static int gc2235_remove(struct i2c_client *client) 955 + static void gc2235_remove(struct i2c_client *client) 956 956 { 957 957 struct v4l2_subdev *sd = i2c_get_clientdata(client); 958 958 struct gc2235_device *dev = to_gc2235_sensor(sd); ··· 965 965 media_entity_cleanup(&dev->sd.entity); 966 966 v4l2_ctrl_handler_free(&dev->ctrl_handler); 967 967 kfree(dev); 968 - 969 - return 0; 970 968 } 971 969 972 970 static int gc2235_probe(struct i2c_client *client)
+1 -3
drivers/staging/media/atomisp/i2c/atomisp-lm3554.c
··· 910 910 return err; 911 911 } 912 912 913 - static int lm3554_remove(struct i2c_client *client) 913 + static void lm3554_remove(struct i2c_client *client) 914 914 { 915 915 struct v4l2_subdev *sd = i2c_get_clientdata(client); 916 916 struct lm3554 *flash = to_lm3554(sd); ··· 926 926 lm3554_gpio_uninit(client); 927 927 928 928 kfree(flash); 929 - 930 - return 0; 931 929 } 932 930 933 931 static const struct dev_pm_ops lm3554_pm_ops = {
+1 -2
drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c
··· 1713 1713 .sensor = &mt9m114_sensor_ops, 1714 1714 }; 1715 1715 1716 - static int mt9m114_remove(struct i2c_client *client) 1716 + static void mt9m114_remove(struct i2c_client *client) 1717 1717 { 1718 1718 struct mt9m114_device *dev; 1719 1719 struct v4l2_subdev *sd = i2c_get_clientdata(client); ··· 1724 1724 media_entity_cleanup(&dev->sd.entity); 1725 1725 v4l2_ctrl_handler_free(&dev->ctrl_handler); 1726 1726 kfree(dev); 1727 - return 0; 1728 1727 } 1729 1728 1730 1729 static int mt9m114_probe(struct i2c_client *client)
+1 -3
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c
··· 1135 1135 .sensor = &ov2680_sensor_ops, 1136 1136 }; 1137 1137 1138 - static int ov2680_remove(struct i2c_client *client) 1138 + static void ov2680_remove(struct i2c_client *client) 1139 1139 { 1140 1140 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1141 1141 struct ov2680_device *dev = to_ov2680_sensor(sd); ··· 1148 1148 media_entity_cleanup(&dev->sd.entity); 1149 1149 v4l2_ctrl_handler_free(&dev->ctrl_handler); 1150 1150 kfree(dev); 1151 - 1152 - return 0; 1153 1151 } 1154 1152 1155 1153 static int ov2680_probe(struct i2c_client *client)
+1 -3
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
··· 1090 1090 .sensor = &ov2722_sensor_ops, 1091 1091 }; 1092 1092 1093 - static int ov2722_remove(struct i2c_client *client) 1093 + static void ov2722_remove(struct i2c_client *client) 1094 1094 { 1095 1095 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1096 1096 struct ov2722_device *dev = to_ov2722_sensor(sd); ··· 1103 1103 1104 1104 media_entity_cleanup(&dev->sd.entity); 1105 1105 kfree(dev); 1106 - 1107 - return 0; 1108 1106 } 1109 1107 1110 1108 static int __ov2722_init_ctrl_handler(struct ov2722_device *dev)
+1 -3
drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c
··· 1877 1877 .pad = &ov5693_pad_ops, 1878 1878 }; 1879 1879 1880 - static int ov5693_remove(struct i2c_client *client) 1880 + static void ov5693_remove(struct i2c_client *client) 1881 1881 { 1882 1882 struct v4l2_subdev *sd = i2c_get_clientdata(client); 1883 1883 struct ov5693_device *dev = to_ov5693_sensor(sd); ··· 1893 1893 media_entity_cleanup(&dev->sd.entity); 1894 1894 v4l2_ctrl_handler_free(&dev->ctrl_handler); 1895 1895 kfree(dev); 1896 - 1897 - return 0; 1898 1896 } 1899 1897 1900 1898 static int ov5693_probe(struct i2c_client *client)
+1 -3
drivers/staging/media/max96712/max96712.c
··· 407 407 return max96712_v4l2_register(priv); 408 408 } 409 409 410 - static int max96712_remove(struct i2c_client *client) 410 + static void max96712_remove(struct i2c_client *client) 411 411 { 412 412 struct max96712_priv *priv = i2c_get_clientdata(client); 413 413 414 414 v4l2_async_unregister_subdev(&priv->sd); 415 415 416 416 gpiod_set_value_cansleep(priv->gpiod_pwdn, 0); 417 - 418 - return 0; 419 417 } 420 418 421 419 static const struct of_device_id max96712_of_table[] = {
+1 -3
drivers/staging/most/i2c/i2c.c
··· 340 340 * 341 341 * Unregister the i2c client device as a MOST interface 342 342 */ 343 - static int i2c_remove(struct i2c_client *client) 343 + static void i2c_remove(struct i2c_client *client) 344 344 { 345 345 struct hdm_i2c *dev = i2c_get_clientdata(client); 346 346 347 347 most_deregister_interface(&dev->most_iface); 348 348 kfree(dev); 349 - 350 - return 0; 351 349 } 352 350 353 351 static const struct i2c_device_id i2c_id[] = {
+1 -3
drivers/staging/olpc_dcon/olpc_dcon.c
··· 668 668 return rc; 669 669 } 670 670 671 - static int dcon_remove(struct i2c_client *client) 671 + static void dcon_remove(struct i2c_client *client) 672 672 { 673 673 struct dcon_priv *dcon = i2c_get_clientdata(client); 674 674 ··· 684 684 cancel_work_sync(&dcon->switch_source); 685 685 686 686 kfree(dcon); 687 - 688 - return 0; 689 687 } 690 688 691 689 #ifdef CONFIG_PM
+1 -3
drivers/tty/serial/max310x.c
··· 1616 1616 regmaps, client->irq); 1617 1617 } 1618 1618 1619 - static int max310x_i2c_remove(struct i2c_client *client) 1619 + static void max310x_i2c_remove(struct i2c_client *client) 1620 1620 { 1621 1621 max310x_remove(&client->dev); 1622 - 1623 - return 0; 1624 1622 } 1625 1623 1626 1624 static struct i2c_driver max310x_i2c_driver = {
+1 -3
drivers/tty/serial/sc16is7xx.c
··· 1689 1689 return sc16is7xx_probe(&i2c->dev, devtype, regmap, i2c->irq); 1690 1690 } 1691 1691 1692 - static int sc16is7xx_i2c_remove(struct i2c_client *client) 1692 + static void sc16is7xx_i2c_remove(struct i2c_client *client) 1693 1693 { 1694 1694 sc16is7xx_remove(&client->dev); 1695 - 1696 - return 0; 1697 1695 } 1698 1696 1699 1697 static const struct i2c_device_id sc16is7xx_i2c_id_table[] = {
+1 -3
drivers/usb/misc/usb3503.c
··· 289 289 return usb3503_probe(hub); 290 290 } 291 291 292 - static int usb3503_i2c_remove(struct i2c_client *i2c) 292 + static void usb3503_i2c_remove(struct i2c_client *i2c) 293 293 { 294 294 struct usb3503 *hub; 295 295 296 296 hub = i2c_get_clientdata(i2c); 297 297 clk_disable_unprepare(hub->clk); 298 - 299 - return 0; 300 298 } 301 299 302 300 static int usb3503_platform_probe(struct platform_device *pdev)
+1 -3
drivers/usb/phy/phy-isp1301-omap.c
··· 1196 1196 1197 1197 static struct isp1301 *the_transceiver; 1198 1198 1199 - static int isp1301_remove(struct i2c_client *i2c) 1199 + static void isp1301_remove(struct i2c_client *i2c) 1200 1200 { 1201 1201 struct isp1301 *isp; 1202 1202 ··· 1214 1214 1215 1215 put_device(&i2c->dev); 1216 1216 the_transceiver = NULL; 1217 - 1218 - return 0; 1219 1217 } 1220 1218 1221 1219 /*-------------------------------------------------------------------------*/
+1 -3
drivers/usb/phy/phy-isp1301.c
··· 120 120 return 0; 121 121 } 122 122 123 - static int isp1301_remove(struct i2c_client *client) 123 + static void isp1301_remove(struct i2c_client *client) 124 124 { 125 125 struct isp1301 *isp = i2c_get_clientdata(client); 126 126 127 127 usb_remove_phy(&isp->phy); 128 128 isp1301_i2c_client = NULL; 129 - 130 - return 0; 131 129 } 132 130 133 131 static struct i2c_driver isp1301_driver = {
+1 -3
drivers/usb/typec/anx7411.c
··· 1541 1541 return ret; 1542 1542 } 1543 1543 1544 - static int anx7411_i2c_remove(struct i2c_client *client) 1544 + static void anx7411_i2c_remove(struct i2c_client *client) 1545 1545 { 1546 1546 struct anx7411_data *plat = i2c_get_clientdata(client); 1547 1547 ··· 1565 1565 typec_unregister_port(plat->typec.port); 1566 1566 1567 1567 anx7411_port_unregister_altmodes(plat->typec.port_amode); 1568 - 1569 - return 0; 1570 1568 } 1571 1569 1572 1570 static const struct i2c_device_id anx7411_id[] = {
+1 -3
drivers/usb/typec/hd3ss3220.c
··· 245 245 return ret; 246 246 } 247 247 248 - static int hd3ss3220_remove(struct i2c_client *client) 248 + static void hd3ss3220_remove(struct i2c_client *client) 249 249 { 250 250 struct hd3ss3220 *hd3ss3220 = i2c_get_clientdata(client); 251 251 252 252 typec_unregister_port(hd3ss3220->port); 253 253 usb_role_switch_put(hd3ss3220->role_sw); 254 - 255 - return 0; 256 254 } 257 255 258 256 static const struct of_device_id dev_ids[] = {
+1 -3
drivers/usb/typec/mux/fsa4480.c
··· 181 181 return 0; 182 182 } 183 183 184 - static int fsa4480_remove(struct i2c_client *client) 184 + static void fsa4480_remove(struct i2c_client *client) 185 185 { 186 186 struct fsa4480 *fsa = i2c_get_clientdata(client); 187 187 188 188 typec_mux_unregister(fsa->mux); 189 189 typec_switch_unregister(fsa->sw); 190 - 191 - return 0; 192 190 } 193 191 194 192 static const struct i2c_device_id fsa4480_table[] = {
+1 -2
drivers/usb/typec/mux/pi3usb30532.c
··· 160 160 return 0; 161 161 } 162 162 163 - static int pi3usb30532_remove(struct i2c_client *client) 163 + static void pi3usb30532_remove(struct i2c_client *client) 164 164 { 165 165 struct pi3usb30532 *pi = i2c_get_clientdata(client); 166 166 167 167 typec_mux_unregister(pi->mux); 168 168 typec_switch_unregister(pi->sw); 169 - return 0; 170 169 } 171 170 172 171 static const struct i2c_device_id pi3usb30532_table[] = {
+1 -3
drivers/usb/typec/rt1719.c
··· 930 930 return ret; 931 931 } 932 932 933 - static int rt1719_remove(struct i2c_client *i2c) 933 + static void rt1719_remove(struct i2c_client *i2c) 934 934 { 935 935 struct rt1719_data *data = i2c_get_clientdata(i2c); 936 936 937 937 typec_unregister_port(data->port); 938 938 usb_role_switch_put(data->role_sw); 939 - 940 - return 0; 941 939 } 942 940 943 941 static const struct of_device_id __maybe_unused rt1719_device_table[] = {
+1 -3
drivers/usb/typec/stusb160x.c
··· 801 801 return ret; 802 802 } 803 803 804 - static int stusb160x_remove(struct i2c_client *client) 804 + static void stusb160x_remove(struct i2c_client *client) 805 805 { 806 806 struct stusb160x *chip = i2c_get_clientdata(client); 807 807 ··· 823 823 824 824 if (chip->main_supply) 825 825 regulator_disable(chip->main_supply); 826 - 827 - return 0; 828 826 } 829 827 830 828 static int __maybe_unused stusb160x_suspend(struct device *dev)
+1 -3
drivers/usb/typec/tcpm/fusb302.c
··· 1771 1771 return ret; 1772 1772 } 1773 1773 1774 - static int fusb302_remove(struct i2c_client *client) 1774 + static void fusb302_remove(struct i2c_client *client) 1775 1775 { 1776 1776 struct fusb302_chip *chip = i2c_get_clientdata(client); 1777 1777 ··· 1783 1783 fwnode_handle_put(chip->tcpc_dev.fwnode); 1784 1784 destroy_workqueue(chip->wq); 1785 1785 fusb302_debugfs_exit(chip); 1786 - 1787 - return 0; 1788 1786 } 1789 1787 1790 1788 static int fusb302_pm_suspend(struct device *dev)
+1 -3
drivers/usb/typec/tcpm/tcpci.c
··· 868 868 return 0; 869 869 } 870 870 871 - static int tcpci_remove(struct i2c_client *client) 871 + static void tcpci_remove(struct i2c_client *client) 872 872 { 873 873 struct tcpci_chip *chip = i2c_get_clientdata(client); 874 874 int err; ··· 879 879 dev_warn(&client->dev, "Failed to disable irqs (%pe)\n", ERR_PTR(err)); 880 880 881 881 tcpci_unregister_port(chip->tcpci); 882 - 883 - return 0; 884 882 } 885 883 886 884 static const struct i2c_device_id tcpci_id[] = {
+1 -3
drivers/usb/typec/tcpm/tcpci_maxim.c
··· 492 492 return ret; 493 493 } 494 494 495 - static int max_tcpci_remove(struct i2c_client *client) 495 + static void max_tcpci_remove(struct i2c_client *client) 496 496 { 497 497 struct max_tcpci_chip *chip = i2c_get_clientdata(client); 498 498 499 499 if (!IS_ERR_OR_NULL(chip->tcpci)) 500 500 tcpci_unregister_port(chip->tcpci); 501 - 502 - return 0; 503 501 } 504 502 505 503 static const struct i2c_device_id max_tcpci_id[] = {
+1 -2
drivers/usb/typec/tcpm/tcpci_rt1711h.c
··· 263 263 return 0; 264 264 } 265 265 266 - static int rt1711h_remove(struct i2c_client *client) 266 + static void rt1711h_remove(struct i2c_client *client) 267 267 { 268 268 struct rt1711h_chip *chip = i2c_get_clientdata(client); 269 269 270 270 tcpci_unregister_port(chip->tcpci); 271 - return 0; 272 271 } 273 272 274 273 static const struct i2c_device_id rt1711h_id[] = {
+1 -3
drivers/usb/typec/tipd/core.c
··· 857 857 return ret; 858 858 } 859 859 860 - static int tps6598x_remove(struct i2c_client *client) 860 + static void tps6598x_remove(struct i2c_client *client) 861 861 { 862 862 struct tps6598x *tps = i2c_get_clientdata(client); 863 863 864 864 tps6598x_disconnect(tps, 0); 865 865 typec_unregister_port(tps->port); 866 866 usb_role_switch_put(tps->role_sw); 867 - 868 - return 0; 869 867 } 870 868 871 869 static const struct of_device_id tps6598x_of_match[] = {
+1 -3
drivers/usb/typec/ucsi/ucsi_ccg.c
··· 1403 1403 return status; 1404 1404 } 1405 1405 1406 - static int ucsi_ccg_remove(struct i2c_client *client) 1406 + static void ucsi_ccg_remove(struct i2c_client *client) 1407 1407 { 1408 1408 struct ucsi_ccg *uc = i2c_get_clientdata(client); 1409 1409 ··· 1413 1413 ucsi_unregister(uc->ucsi); 1414 1414 ucsi_destroy(uc->ucsi); 1415 1415 free_irq(uc->irq, uc); 1416 - 1417 - return 0; 1418 1416 } 1419 1417 1420 1418 static const struct i2c_device_id ucsi_ccg_device_id[] = {
+1 -3
drivers/usb/typec/ucsi/ucsi_stm32g0.c
··· 688 688 return ret; 689 689 } 690 690 691 - static int ucsi_stm32g0_remove(struct i2c_client *client) 691 + static void ucsi_stm32g0_remove(struct i2c_client *client) 692 692 { 693 693 struct ucsi_stm32g0 *g0 = i2c_get_clientdata(client); 694 694 ··· 697 697 if (g0->fw_name) 698 698 i2c_unregister_device(g0->i2c_bl); 699 699 ucsi_destroy(g0->ucsi); 700 - 701 - return 0; 702 700 } 703 701 704 702 static int ucsi_stm32g0_suspend(struct device *dev)
+1 -3
drivers/usb/typec/wusb3801.c
··· 399 399 return ret; 400 400 } 401 401 402 - static int wusb3801_remove(struct i2c_client *client) 402 + static void wusb3801_remove(struct i2c_client *client) 403 403 { 404 404 struct wusb3801 *wusb3801 = i2c_get_clientdata(client); 405 405 ··· 411 411 412 412 if (wusb3801->vbus_on) 413 413 regulator_disable(wusb3801->vbus_supply); 414 - 415 - return 0; 416 414 } 417 415 418 416 static const struct of_device_id wusb3801_of_match[] = {
+1 -3
drivers/video/backlight/adp8860_bl.c
··· 753 753 return ret; 754 754 } 755 755 756 - static int adp8860_remove(struct i2c_client *client) 756 + static void adp8860_remove(struct i2c_client *client) 757 757 { 758 758 struct adp8860_bl *data = i2c_get_clientdata(client); 759 759 ··· 765 765 if (data->en_ambl_sens) 766 766 sysfs_remove_group(&data->bl->dev.kobj, 767 767 &adp8860_bl_attr_group); 768 - 769 - return 0; 770 768 } 771 769 772 770 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/video/backlight/adp8870_bl.c
··· 925 925 return ret; 926 926 } 927 927 928 - static int adp8870_remove(struct i2c_client *client) 928 + static void adp8870_remove(struct i2c_client *client) 929 929 { 930 930 struct adp8870_bl *data = i2c_get_clientdata(client); 931 931 ··· 937 937 if (data->pdata->en_ambl_sens) 938 938 sysfs_remove_group(&data->bl->dev.kobj, 939 939 &adp8870_bl_attr_group); 940 - 941 - return 0; 942 940 } 943 941 944 942 #ifdef CONFIG_PM_SLEEP
+1 -3
drivers/video/backlight/arcxcnn_bl.c
··· 362 362 return ret; 363 363 } 364 364 365 - static int arcxcnn_remove(struct i2c_client *cl) 365 + static void arcxcnn_remove(struct i2c_client *cl) 366 366 { 367 367 struct arcxcnn *lp = i2c_get_clientdata(cl); 368 368 ··· 376 376 lp->bl->props.brightness = 0; 377 377 378 378 backlight_update_status(lp->bl); 379 - 380 - return 0; 381 379 } 382 380 383 381 static const struct of_device_id arcxcnn_dt_ids[] = {
+1 -3
drivers/video/backlight/bd6107.c
··· 175 175 return 0; 176 176 } 177 177 178 - static int bd6107_remove(struct i2c_client *client) 178 + static void bd6107_remove(struct i2c_client *client) 179 179 { 180 180 struct backlight_device *backlight = i2c_get_clientdata(client); 181 181 182 182 backlight->props.brightness = 0; 183 183 backlight_update_status(backlight); 184 - 185 - return 0; 186 184 } 187 185 188 186 static const struct i2c_device_id bd6107_ids[] = {
+1 -2
drivers/video/backlight/lm3630a_bl.c
··· 579 579 return 0; 580 580 } 581 581 582 - static int lm3630a_remove(struct i2c_client *client) 582 + static void lm3630a_remove(struct i2c_client *client) 583 583 { 584 584 int rval; 585 585 struct lm3630a_chip *pchip = i2c_get_clientdata(client); ··· 596 596 free_irq(pchip->irq, pchip); 597 597 destroy_workqueue(pchip->irqthread); 598 598 } 599 - return 0; 600 599 } 601 600 602 601 static const struct i2c_device_id lm3630a_id[] = {
+1 -2
drivers/video/backlight/lm3639_bl.c
··· 390 390 return ret; 391 391 } 392 392 393 - static int lm3639_remove(struct i2c_client *client) 393 + static void lm3639_remove(struct i2c_client *client) 394 394 { 395 395 struct lm3639_chip_data *pchip = i2c_get_clientdata(client); 396 396 ··· 400 400 led_classdev_unregister(&pchip->cdev_flash); 401 401 if (pchip->bled) 402 402 device_remove_file(&(pchip->bled->dev), &dev_attr_bled_mode); 403 - return 0; 404 403 } 405 404 406 405 static const struct i2c_device_id lm3639_id[] = {
+1 -3
drivers/video/backlight/lp855x_bl.c
··· 534 534 return ret; 535 535 } 536 536 537 - static int lp855x_remove(struct i2c_client *cl) 537 + static void lp855x_remove(struct i2c_client *cl) 538 538 { 539 539 struct lp855x *lp = i2c_get_clientdata(cl); 540 540 ··· 545 545 if (lp->supply) 546 546 regulator_disable(lp->supply); 547 547 sysfs_remove_group(&lp->dev->kobj, &lp855x_attr_group); 548 - 549 - return 0; 550 548 } 551 549 552 550 static const struct of_device_id lp855x_dt_ids[] = {
+1 -3
drivers/video/backlight/lv5207lp.c
··· 124 124 return 0; 125 125 } 126 126 127 - static int lv5207lp_remove(struct i2c_client *client) 127 + static void lv5207lp_remove(struct i2c_client *client) 128 128 { 129 129 struct backlight_device *backlight = i2c_get_clientdata(client); 130 130 131 131 backlight->props.brightness = 0; 132 132 backlight_update_status(backlight); 133 - 134 - return 0; 135 133 } 136 134 137 135 static const struct i2c_device_id lv5207lp_ids[] = {
+1 -2
drivers/video/backlight/tosa_bl.c
··· 121 121 return ret; 122 122 } 123 123 124 - static int tosa_bl_remove(struct i2c_client *client) 124 + static void tosa_bl_remove(struct i2c_client *client) 125 125 { 126 126 struct tosa_bl_data *data = i2c_get_clientdata(client); 127 127 128 128 data->bl = NULL; 129 - return 0; 130 129 } 131 130 132 131 #ifdef CONFIG_PM_SLEEP
+1 -2
drivers/video/fbdev/matrox/matroxfb_maven.c
··· 1276 1276 return err; 1277 1277 } 1278 1278 1279 - static int maven_remove(struct i2c_client *client) 1279 + static void maven_remove(struct i2c_client *client) 1280 1280 { 1281 1281 maven_shutdown_client(client); 1282 1282 kfree(i2c_get_clientdata(client)); 1283 - return 0; 1284 1283 } 1285 1284 1286 1285 static const struct i2c_device_id maven_id[] = {
+1 -3
drivers/video/fbdev/ssd1307fb.c
··· 817 817 return ret; 818 818 } 819 819 820 - static int ssd1307fb_remove(struct i2c_client *client) 820 + static void ssd1307fb_remove(struct i2c_client *client) 821 821 { 822 822 struct fb_info *info = i2c_get_clientdata(client); 823 823 struct ssd1307fb_par *par = info->par; ··· 836 836 fb_deferred_io_cleanup(info); 837 837 __free_pages(__va(info->fix.smem_start), get_order(info->fix.smem_len)); 838 838 framebuffer_release(info); 839 - 840 - return 0; 841 839 } 842 840 843 841 static const struct i2c_device_id ssd1307fb_i2c_id[] = {
+1 -2
drivers/w1/masters/ds2482.c
··· 525 525 return err; 526 526 } 527 527 528 - static int ds2482_remove(struct i2c_client *client) 528 + static void ds2482_remove(struct i2c_client *client) 529 529 { 530 530 struct ds2482_data *data = i2c_get_clientdata(client); 531 531 int idx; ··· 538 538 539 539 /* Free the memory */ 540 540 kfree(data); 541 - return 0; 542 541 } 543 542 544 543 /*
+1 -3
drivers/watchdog/ziirave_wdt.c
··· 708 708 return ret; 709 709 } 710 710 711 - static int ziirave_wdt_remove(struct i2c_client *client) 711 + static void ziirave_wdt_remove(struct i2c_client *client) 712 712 { 713 713 struct ziirave_wdt_data *w_priv = i2c_get_clientdata(client); 714 714 715 715 watchdog_unregister_device(&w_priv->wdd); 716 - 717 - return 0; 718 716 } 719 717 720 718 static const struct i2c_device_id ziirave_wdt_id[] = {
+1 -1
include/linux/i2c.h
··· 273 273 274 274 /* Standard driver model interfaces */ 275 275 int (*probe)(struct i2c_client *client, const struct i2c_device_id *id); 276 - int (*remove)(struct i2c_client *client); 276 + void (*remove)(struct i2c_client *client); 277 277 278 278 /* New driver model interface to aid the seamless removal of the 279 279 * current probe()'s, more commonly unused than used second parameter.
+1 -2
sound/aoa/codecs/onyx.c
··· 1029 1029 return -ENODEV; 1030 1030 } 1031 1031 1032 - static int onyx_i2c_remove(struct i2c_client *client) 1032 + static void onyx_i2c_remove(struct i2c_client *client) 1033 1033 { 1034 1034 struct onyx *onyx = i2c_get_clientdata(client); 1035 1035 ··· 1037 1037 of_node_put(onyx->codec.node); 1038 1038 kfree(onyx->codec_info); 1039 1039 kfree(onyx); 1040 - return 0; 1041 1040 } 1042 1041 1043 1042 static const struct i2c_device_id onyx_i2c_id[] = {
+1 -2
sound/aoa/codecs/tas.c
··· 912 912 return -EINVAL; 913 913 } 914 914 915 - static int tas_i2c_remove(struct i2c_client *client) 915 + static void tas_i2c_remove(struct i2c_client *client) 916 916 { 917 917 struct tas *tas = i2c_get_clientdata(client); 918 918 u8 tmp = TAS_ACR_ANALOG_PDOWN; ··· 925 925 926 926 mutex_destroy(&tas->mtx); 927 927 kfree(tas); 928 - return 0; 929 928 } 930 929 931 930 static const struct i2c_device_id tas_i2c_id[] = {
+1 -3
sound/pci/hda/cs35l41_hda_i2c.c
··· 33 33 devm_regmap_init_i2c(clt, &cs35l41_regmap_i2c)); 34 34 } 35 35 36 - static int cs35l41_hda_i2c_remove(struct i2c_client *clt) 36 + static void cs35l41_hda_i2c_remove(struct i2c_client *clt) 37 37 { 38 38 cs35l41_hda_remove(&clt->dev); 39 - 40 - return 0; 41 39 } 42 40 43 41 static const struct i2c_device_id cs35l41_hda_i2c_id[] = {
+2 -4
sound/ppc/keywest.c
··· 71 71 return 0; 72 72 } 73 73 74 - static int keywest_remove(struct i2c_client *client) 74 + static void keywest_remove(struct i2c_client *client) 75 75 { 76 76 if (! keywest_ctx) 77 - return 0; 77 + return; 78 78 if (client == keywest_ctx->client) 79 79 keywest_ctx->client = NULL; 80 - 81 - return 0; 82 80 } 83 81 84 82
+1 -2
sound/soc/codecs/adau1761-i2c.c
··· 30 30 id->driver_data, NULL); 31 31 } 32 32 33 - static int adau1761_i2c_remove(struct i2c_client *client) 33 + static void adau1761_i2c_remove(struct i2c_client *client) 34 34 { 35 35 adau17x1_remove(&client->dev); 36 - return 0; 37 36 } 38 37 39 38 static const struct i2c_device_id adau1761_i2c_ids[] = {
+1 -2
sound/soc/codecs/adau1781-i2c.c
··· 30 30 id->driver_data, NULL); 31 31 } 32 32 33 - static int adau1781_i2c_remove(struct i2c_client *client) 33 + static void adau1781_i2c_remove(struct i2c_client *client) 34 34 { 35 35 adau17x1_remove(&client->dev); 36 - return 0; 37 36 } 38 37 39 38 static const struct i2c_device_id adau1781_i2c_ids[] = {
+1 -3
sound/soc/codecs/ak4375.c
··· 580 580 return 0; 581 581 } 582 582 583 - static int ak4375_i2c_remove(struct i2c_client *i2c) 583 + static void ak4375_i2c_remove(struct i2c_client *i2c) 584 584 { 585 585 pm_runtime_disable(&i2c->dev); 586 - 587 - return 0; 588 586 } 589 587 590 588 static const struct of_device_id ak4375_of_match[] = {
+1 -3
sound/soc/codecs/ak4458.c
··· 824 824 return 0; 825 825 } 826 826 827 - static int ak4458_i2c_remove(struct i2c_client *i2c) 827 + static void ak4458_i2c_remove(struct i2c_client *i2c) 828 828 { 829 829 pm_runtime_disable(&i2c->dev); 830 - 831 - return 0; 832 830 } 833 831 834 832 static const struct of_device_id ak4458_of_match[] = {
+1 -3
sound/soc/codecs/ak4641.c
··· 604 604 return ret; 605 605 } 606 606 607 - static int ak4641_i2c_remove(struct i2c_client *i2c) 607 + static void ak4641_i2c_remove(struct i2c_client *i2c) 608 608 { 609 609 struct ak4641_platform_data *pdata = i2c->dev.platform_data; 610 610 ··· 616 616 if (gpio_is_valid(pdata->gpio_npdn)) 617 617 gpio_free(pdata->gpio_npdn); 618 618 } 619 - 620 - return 0; 621 619 } 622 620 623 621 static const struct i2c_device_id ak4641_i2c_id[] = {
+1 -3
sound/soc/codecs/ak5558.c
··· 479 479 return 0; 480 480 } 481 481 482 - static int ak5558_i2c_remove(struct i2c_client *i2c) 482 + static void ak5558_i2c_remove(struct i2c_client *i2c) 483 483 { 484 484 pm_runtime_disable(&i2c->dev); 485 - 486 - return 0; 487 485 } 488 486 489 487 static const struct of_device_id ak5558_i2c_dt_ids[] __maybe_unused = {
+1 -3
sound/soc/codecs/cs35l32.c
··· 497 497 return ret; 498 498 } 499 499 500 - static int cs35l32_i2c_remove(struct i2c_client *i2c_client) 500 + static void cs35l32_i2c_remove(struct i2c_client *i2c_client) 501 501 { 502 502 struct cs35l32_private *cs35l32 = i2c_get_clientdata(i2c_client); 503 503 504 504 /* Hold down reset */ 505 505 gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); 506 - 507 - return 0; 508 506 } 509 507 510 508 #ifdef CONFIG_PM
+1 -3
sound/soc/codecs/cs35l33.c
··· 1250 1250 return ret; 1251 1251 } 1252 1252 1253 - static int cs35l33_i2c_remove(struct i2c_client *client) 1253 + static void cs35l33_i2c_remove(struct i2c_client *client) 1254 1254 { 1255 1255 struct cs35l33_private *cs35l33 = i2c_get_clientdata(client); 1256 1256 ··· 1259 1259 pm_runtime_disable(&client->dev); 1260 1260 regulator_bulk_disable(cs35l33->num_core_supplies, 1261 1261 cs35l33->core_supplies); 1262 - 1263 - return 0; 1264 1262 } 1265 1263 1266 1264 static const struct of_device_id cs35l33_of_match[] = {
+1 -3
sound/soc/codecs/cs35l34.c
··· 1128 1128 return ret; 1129 1129 } 1130 1130 1131 - static int cs35l34_i2c_remove(struct i2c_client *client) 1131 + static void cs35l34_i2c_remove(struct i2c_client *client) 1132 1132 { 1133 1133 struct cs35l34_private *cs35l34 = i2c_get_clientdata(client); 1134 1134 ··· 1137 1137 pm_runtime_disable(&client->dev); 1138 1138 regulator_bulk_disable(cs35l34->num_core_supplies, 1139 1139 cs35l34->core_supplies); 1140 - 1141 - return 0; 1142 1140 } 1143 1141 1144 1142 static int __maybe_unused cs35l34_runtime_resume(struct device *dev)
+1 -3
sound/soc/codecs/cs35l35.c
··· 1627 1627 return ret; 1628 1628 } 1629 1629 1630 - static int cs35l35_i2c_remove(struct i2c_client *i2c_client) 1630 + static void cs35l35_i2c_remove(struct i2c_client *i2c_client) 1631 1631 { 1632 1632 struct cs35l35_private *cs35l35 = i2c_get_clientdata(i2c_client); 1633 1633 1634 1634 regulator_bulk_disable(cs35l35->num_supplies, cs35l35->supplies); 1635 1635 gpiod_set_value_cansleep(cs35l35->reset_gpio, 0); 1636 - 1637 - return 0; 1638 1636 } 1639 1637 1640 1638 static const struct of_device_id cs35l35_of_match[] = {
+1 -3
sound/soc/codecs/cs35l36.c
··· 1910 1910 return ret; 1911 1911 } 1912 1912 1913 - static int cs35l36_i2c_remove(struct i2c_client *client) 1913 + static void cs35l36_i2c_remove(struct i2c_client *client) 1914 1914 { 1915 1915 struct cs35l36_private *cs35l36 = i2c_get_clientdata(client); 1916 1916 ··· 1924 1924 gpiod_set_value_cansleep(cs35l36->reset_gpio, 0); 1925 1925 1926 1926 regulator_bulk_disable(cs35l36->num_supplies, cs35l36->supplies); 1927 - 1928 - return 0; 1929 1927 } 1930 1928 static const struct of_device_id cs35l36_of_match[] = { 1931 1929 {.compatible = "cirrus,cs35l36"},
+1 -3
sound/soc/codecs/cs35l41-i2c.c
··· 56 56 return cs35l41_probe(cs35l41, hw_cfg); 57 57 } 58 58 59 - static int cs35l41_i2c_remove(struct i2c_client *client) 59 + static void cs35l41_i2c_remove(struct i2c_client *client) 60 60 { 61 61 struct cs35l41_private *cs35l41 = i2c_get_clientdata(client); 62 62 63 63 cs35l41_remove(cs35l41); 64 - 65 - return 0; 66 64 } 67 65 68 66 #ifdef CONFIG_OF
+1 -3
sound/soc/codecs/cs35l45-i2c.c
··· 36 36 return cs35l45_probe(cs35l45); 37 37 } 38 38 39 - static int cs35l45_i2c_remove(struct i2c_client *client) 39 + static void cs35l45_i2c_remove(struct i2c_client *client) 40 40 { 41 41 struct cs35l45_private *cs35l45 = i2c_get_clientdata(client); 42 42 43 43 cs35l45_remove(cs35l45); 44 - 45 - return 0; 46 44 } 47 45 48 46 static const struct of_device_id cs35l45_of_match[] = {
+1 -3
sound/soc/codecs/cs4234.c
··· 850 850 return ret; 851 851 } 852 852 853 - static int cs4234_i2c_remove(struct i2c_client *i2c_client) 853 + static void cs4234_i2c_remove(struct i2c_client *i2c_client) 854 854 { 855 855 struct cs4234 *cs4234 = i2c_get_clientdata(i2c_client); 856 856 struct device *dev = &i2c_client->dev; ··· 858 858 snd_soc_unregister_component(dev); 859 859 pm_runtime_disable(dev); 860 860 cs4234_shutdown(cs4234); 861 - 862 - return 0; 863 861 } 864 862 865 863 static int __maybe_unused cs4234_runtime_resume(struct device *dev)
+1 -3
sound/soc/codecs/cs4265.c
··· 623 623 ARRAY_SIZE(cs4265_dai)); 624 624 } 625 625 626 - static int cs4265_i2c_remove(struct i2c_client *i2c) 626 + static void cs4265_i2c_remove(struct i2c_client *i2c) 627 627 { 628 628 struct cs4265_private *cs4265 = i2c_get_clientdata(i2c); 629 629 630 630 if (cs4265->reset_gpio) 631 631 gpiod_set_value_cansleep(cs4265->reset_gpio, 0); 632 - 633 - return 0; 634 632 } 635 633 636 634 static const struct of_device_id cs4265_of_match[] = {
+1 -3
sound/soc/codecs/cs4270.c
··· 650 650 * This function puts the chip into low power mode when the i2c device 651 651 * is removed. 652 652 */ 653 - static int cs4270_i2c_remove(struct i2c_client *i2c_client) 653 + static void cs4270_i2c_remove(struct i2c_client *i2c_client) 654 654 { 655 655 struct cs4270_private *cs4270 = i2c_get_clientdata(i2c_client); 656 656 657 657 gpiod_set_value_cansleep(cs4270->reset_gpio, 0); 658 - 659 - return 0; 660 658 } 661 659 662 660 /**
+1 -3
sound/soc/codecs/cs42l42.c
··· 2340 2340 return ret; 2341 2341 } 2342 2342 2343 - static int cs42l42_i2c_remove(struct i2c_client *i2c_client) 2343 + static void cs42l42_i2c_remove(struct i2c_client *i2c_client) 2344 2344 { 2345 2345 struct cs42l42_private *cs42l42 = i2c_get_clientdata(i2c_client); 2346 2346 ··· 2357 2357 2358 2358 gpiod_set_value_cansleep(cs42l42->reset_gpio, 0); 2359 2359 regulator_bulk_disable(ARRAY_SIZE(cs42l42->supplies), cs42l42->supplies); 2360 - 2361 - return 0; 2362 2360 } 2363 2361 2364 2362 static const struct dev_pm_ops cs42l42_pm_ops = {
+1 -3
sound/soc/codecs/cs42l51-i2c.c
··· 28 28 return cs42l51_probe(&i2c->dev, devm_regmap_init_i2c(i2c, &config)); 29 29 } 30 30 31 - static int cs42l51_i2c_remove(struct i2c_client *i2c) 31 + static void cs42l51_i2c_remove(struct i2c_client *i2c) 32 32 { 33 33 cs42l51_remove(&i2c->dev); 34 - 35 - return 0; 36 34 } 37 35 38 36 static const struct dev_pm_ops cs42l51_pm_ops = {
+1 -2
sound/soc/codecs/cs42l56.c
··· 1320 1320 return ret; 1321 1321 } 1322 1322 1323 - static int cs42l56_i2c_remove(struct i2c_client *client) 1323 + static void cs42l56_i2c_remove(struct i2c_client *client) 1324 1324 { 1325 1325 struct cs42l56_private *cs42l56 = i2c_get_clientdata(client); 1326 1326 1327 1327 regulator_bulk_disable(ARRAY_SIZE(cs42l56->supplies), 1328 1328 cs42l56->supplies); 1329 - return 0; 1330 1329 } 1331 1330 1332 1331 static const struct of_device_id cs42l56_of_match[] = {
+1 -3
sound/soc/codecs/cs42xx8-i2c.c
··· 30 30 return 0; 31 31 } 32 32 33 - static int cs42xx8_i2c_remove(struct i2c_client *i2c) 33 + static void cs42xx8_i2c_remove(struct i2c_client *i2c) 34 34 { 35 35 pm_runtime_disable(&i2c->dev); 36 - 37 - return 0; 38 36 } 39 37 40 38 static struct i2c_device_id cs42xx8_i2c_id[] = {
+1 -3
sound/soc/codecs/cs43130.c
··· 2583 2583 return ret; 2584 2584 } 2585 2585 2586 - static int cs43130_i2c_remove(struct i2c_client *client) 2586 + static void cs43130_i2c_remove(struct i2c_client *client) 2587 2587 { 2588 2588 struct cs43130_private *cs43130 = i2c_get_clientdata(client); 2589 2589 ··· 2610 2610 2611 2611 pm_runtime_disable(&client->dev); 2612 2612 regulator_bulk_disable(CS43130_NUM_SUPPLIES, cs43130->supplies); 2613 - 2614 - return 0; 2615 2613 } 2616 2614 2617 2615 static int __maybe_unused cs43130_runtime_suspend(struct device *dev)
+1 -3
sound/soc/codecs/cs4349.c
··· 305 305 &cs4349_dai, 1); 306 306 } 307 307 308 - static int cs4349_i2c_remove(struct i2c_client *client) 308 + static void cs4349_i2c_remove(struct i2c_client *client) 309 309 { 310 310 struct cs4349_private *cs4349 = i2c_get_clientdata(client); 311 311 312 312 /* Hold down reset */ 313 313 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); 314 - 315 - return 0; 316 314 } 317 315 318 316 #ifdef CONFIG_PM
+1 -3
sound/soc/codecs/cs53l30.c
··· 1043 1043 return ret; 1044 1044 } 1045 1045 1046 - static int cs53l30_i2c_remove(struct i2c_client *client) 1046 + static void cs53l30_i2c_remove(struct i2c_client *client) 1047 1047 { 1048 1048 struct cs53l30_private *cs53l30 = i2c_get_clientdata(client); 1049 1049 ··· 1052 1052 1053 1053 regulator_bulk_disable(ARRAY_SIZE(cs53l30->supplies), 1054 1054 cs53l30->supplies); 1055 - 1056 - return 0; 1057 1055 } 1058 1056 1059 1057 #ifdef CONFIG_PM
+1 -2
sound/soc/codecs/cx2072x.c
··· 1673 1673 return 0; 1674 1674 } 1675 1675 1676 - static int cx2072x_i2c_remove(struct i2c_client *i2c) 1676 + static void cx2072x_i2c_remove(struct i2c_client *i2c) 1677 1677 { 1678 1678 pm_runtime_disable(&i2c->dev); 1679 - return 0; 1680 1679 } 1681 1680 1682 1681 static const struct i2c_device_id cx2072x_i2c_id[] = {
+1 -3
sound/soc/codecs/max98090.c
··· 2615 2615 msleep(40); 2616 2616 } 2617 2617 2618 - static int max98090_i2c_remove(struct i2c_client *client) 2618 + static void max98090_i2c_remove(struct i2c_client *client) 2619 2619 { 2620 2620 max98090_i2c_shutdown(client); 2621 - 2622 - return 0; 2623 2621 } 2624 2622 2625 2623 #ifdef CONFIG_PM
+1 -2
sound/soc/codecs/max9860.c
··· 701 701 return ret; 702 702 } 703 703 704 - static int max9860_remove(struct i2c_client *i2c) 704 + static void max9860_remove(struct i2c_client *i2c) 705 705 { 706 706 struct device *dev = &i2c->dev; 707 707 struct max9860_priv *max9860 = dev_get_drvdata(dev); 708 708 709 709 pm_runtime_disable(dev); 710 710 regulator_disable(max9860->dvddio); 711 - return 0; 712 711 } 713 712 714 713 static const struct i2c_device_id max9860_i2c_id[] = {
+1 -3
sound/soc/codecs/max98927.c
··· 934 934 return ret; 935 935 } 936 936 937 - static int max98927_i2c_remove(struct i2c_client *i2c) 937 + static void max98927_i2c_remove(struct i2c_client *i2c) 938 938 { 939 939 struct max98927_priv *max98927 = i2c_get_clientdata(i2c); 940 940 941 941 if (max98927->reset_gpio) { 942 942 gpiod_set_value_cansleep(max98927->reset_gpio, 1); 943 943 } 944 - 945 - return 0; 946 944 } 947 945 948 946 static const struct i2c_device_id max98927_i2c_id[] = {
+1 -2
sound/soc/codecs/mt6660.c
··· 516 516 return ret; 517 517 } 518 518 519 - static int mt6660_i2c_remove(struct i2c_client *client) 519 + static void mt6660_i2c_remove(struct i2c_client *client) 520 520 { 521 521 struct mt6660_chip *chip = i2c_get_clientdata(client); 522 522 523 523 pm_runtime_disable(chip->dev); 524 524 pm_runtime_set_suspended(chip->dev); 525 525 mutex_destroy(&chip->io_lock); 526 - return 0; 527 526 } 528 527 529 528 static int __maybe_unused mt6660_i2c_runtime_suspend(struct device *dev)
+2 -4
sound/soc/codecs/nau8825.c
··· 2668 2668 &nau8825_dai, 1); 2669 2669 } 2670 2670 2671 - static int nau8825_i2c_remove(struct i2c_client *client) 2672 - { 2673 - return 0; 2674 - } 2671 + static void nau8825_i2c_remove(struct i2c_client *client) 2672 + {} 2675 2673 2676 2674 static const struct i2c_device_id nau8825_i2c_ids[] = { 2677 2675 { "nau8825", 0 },
+1 -3
sound/soc/codecs/pcm1789-i2c.c
··· 27 27 return pcm1789_common_init(&client->dev, regmap); 28 28 } 29 29 30 - static int pcm1789_i2c_remove(struct i2c_client *client) 30 + static void pcm1789_i2c_remove(struct i2c_client *client) 31 31 { 32 32 pcm1789_common_exit(&client->dev); 33 - 34 - return 0; 35 33 } 36 34 37 35 #ifdef CONFIG_OF
+1 -3
sound/soc/codecs/pcm3168a-i2c.c
··· 26 26 return pcm3168a_probe(&i2c->dev, regmap); 27 27 } 28 28 29 - static int pcm3168a_i2c_remove(struct i2c_client *i2c) 29 + static void pcm3168a_i2c_remove(struct i2c_client *i2c) 30 30 { 31 31 pcm3168a_remove(&i2c->dev); 32 - 33 - return 0; 34 32 } 35 33 36 34 static const struct i2c_device_id pcm3168a_i2c_id[] = {
+1 -2
sound/soc/codecs/pcm512x-i2c.c
··· 29 29 return pcm512x_probe(&i2c->dev, regmap); 30 30 } 31 31 32 - static int pcm512x_i2c_remove(struct i2c_client *i2c) 32 + static void pcm512x_i2c_remove(struct i2c_client *i2c) 33 33 { 34 34 pcm512x_remove(&i2c->dev); 35 - return 0; 36 35 } 37 36 38 37 static const struct i2c_device_id pcm512x_i2c_id[] = {
+1 -3
sound/soc/codecs/rt274.c
··· 1204 1204 return ret; 1205 1205 } 1206 1206 1207 - static int rt274_i2c_remove(struct i2c_client *i2c) 1207 + static void rt274_i2c_remove(struct i2c_client *i2c) 1208 1208 { 1209 1209 struct rt274_priv *rt274 = i2c_get_clientdata(i2c); 1210 1210 1211 1211 if (i2c->irq) 1212 1212 free_irq(i2c->irq, rt274); 1213 - 1214 - return 0; 1215 1213 } 1216 1214 1217 1215
+1 -3
sound/soc/codecs/rt286.c
··· 1249 1249 return ret; 1250 1250 } 1251 1251 1252 - static int rt286_i2c_remove(struct i2c_client *i2c) 1252 + static void rt286_i2c_remove(struct i2c_client *i2c) 1253 1253 { 1254 1254 struct rt286_priv *rt286 = i2c_get_clientdata(i2c); 1255 1255 1256 1256 if (i2c->irq) 1257 1257 free_irq(i2c->irq, rt286); 1258 - 1259 - return 0; 1260 1258 } 1261 1259 1262 1260
+1 -3
sound/soc/codecs/rt298.c
··· 1290 1290 return ret; 1291 1291 } 1292 1292 1293 - static int rt298_i2c_remove(struct i2c_client *i2c) 1293 + static void rt298_i2c_remove(struct i2c_client *i2c) 1294 1294 { 1295 1295 struct rt298_priv *rt298 = i2c_get_clientdata(i2c); 1296 1296 1297 1297 if (i2c->irq) 1298 1298 free_irq(i2c->irq, rt298); 1299 - 1300 - return 0; 1301 1299 } 1302 1300 1303 1301
+2 -4
sound/soc/codecs/rt5616.c
··· 1388 1388 rt5616_dai, ARRAY_SIZE(rt5616_dai)); 1389 1389 } 1390 1390 1391 - static int rt5616_i2c_remove(struct i2c_client *i2c) 1392 - { 1393 - return 0; 1394 - } 1391 + static void rt5616_i2c_remove(struct i2c_client *i2c) 1392 + {} 1395 1393 1396 1394 static void rt5616_i2c_shutdown(struct i2c_client *client) 1397 1395 {
+2 -4
sound/soc/codecs/rt5631.c
··· 1720 1720 return ret; 1721 1721 } 1722 1722 1723 - static int rt5631_i2c_remove(struct i2c_client *client) 1724 - { 1725 - return 0; 1726 - } 1723 + static void rt5631_i2c_remove(struct i2c_client *client) 1724 + {} 1727 1725 1728 1726 static struct i2c_driver rt5631_i2c_driver = { 1729 1727 .driver = {
+1 -3
sound/soc/codecs/rt5645.c
··· 4145 4145 return ret; 4146 4146 } 4147 4147 4148 - static int rt5645_i2c_remove(struct i2c_client *i2c) 4148 + static void rt5645_i2c_remove(struct i2c_client *i2c) 4149 4149 { 4150 4150 struct rt5645_priv *rt5645 = i2c_get_clientdata(i2c); 4151 4151 ··· 4162 4162 cancel_delayed_work_sync(&rt5645->rcclock_work); 4163 4163 4164 4164 regulator_bulk_disable(ARRAY_SIZE(rt5645->supplies), rt5645->supplies); 4165 - 4166 - return 0; 4167 4165 } 4168 4166 4169 4167 static void rt5645_i2c_shutdown(struct i2c_client *i2c)
+1 -3
sound/soc/codecs/rt5663.c
··· 3710 3710 return ret; 3711 3711 } 3712 3712 3713 - static int rt5663_i2c_remove(struct i2c_client *i2c) 3713 + static void rt5663_i2c_remove(struct i2c_client *i2c) 3714 3714 { 3715 3715 struct rt5663_priv *rt5663 = i2c_get_clientdata(i2c); 3716 3716 ··· 3718 3718 free_irq(i2c->irq, rt5663); 3719 3719 3720 3720 regulator_bulk_disable(ARRAY_SIZE(rt5663->supplies), rt5663->supplies); 3721 - 3722 - return 0; 3723 3721 } 3724 3722 3725 3723 static void rt5663_i2c_shutdown(struct i2c_client *client)
+1 -3
sound/soc/codecs/rt5670.c
··· 3320 3320 return ret; 3321 3321 } 3322 3322 3323 - static int rt5670_i2c_remove(struct i2c_client *i2c) 3323 + static void rt5670_i2c_remove(struct i2c_client *i2c) 3324 3324 { 3325 3325 pm_runtime_disable(&i2c->dev); 3326 - 3327 - return 0; 3328 3326 } 3329 3327 3330 3328 static struct i2c_driver rt5670_i2c_driver = {
+1 -3
sound/soc/codecs/rt5677.c
··· 5693 5693 rt5677_dai, ARRAY_SIZE(rt5677_dai)); 5694 5694 } 5695 5695 5696 - static int rt5677_i2c_remove(struct i2c_client *i2c) 5696 + static void rt5677_i2c_remove(struct i2c_client *i2c) 5697 5697 { 5698 5698 rt5677_free_gpio(i2c); 5699 - 5700 - return 0; 5701 5699 } 5702 5700 5703 5701 static struct i2c_driver rt5677_i2c_driver = {
+1 -3
sound/soc/codecs/rt5682-i2c.c
··· 302 302 rt5682_reset(rt5682); 303 303 } 304 304 305 - static int rt5682_i2c_remove(struct i2c_client *client) 305 + static void rt5682_i2c_remove(struct i2c_client *client) 306 306 { 307 307 rt5682_i2c_shutdown(client); 308 - 309 - return 0; 310 308 } 311 309 312 310 static const struct of_device_id rt5682_of_match[] = {
+1 -3
sound/soc/codecs/rt5682s.c
··· 3194 3194 rt5682s_reset(rt5682s); 3195 3195 } 3196 3196 3197 - static int rt5682s_i2c_remove(struct i2c_client *client) 3197 + static void rt5682s_i2c_remove(struct i2c_client *client) 3198 3198 { 3199 3199 rt5682s_i2c_shutdown(client); 3200 - 3201 - return 0; 3202 3200 } 3203 3201 3204 3202 static const struct of_device_id rt5682s_of_match[] = {
+1 -2
sound/soc/codecs/rt9120.c
··· 572 572 &rt9120_dai, 1); 573 573 } 574 574 575 - static int rt9120_remove(struct i2c_client *i2c) 575 + static void rt9120_remove(struct i2c_client *i2c) 576 576 { 577 577 pm_runtime_disable(&i2c->dev); 578 578 pm_runtime_set_suspended(&i2c->dev); 579 - return 0; 580 579 } 581 580 582 581 static int __maybe_unused rt9120_runtime_suspend(struct device *dev)
+1 -3
sound/soc/codecs/sgtl5000.c
··· 1790 1790 return ret; 1791 1791 } 1792 1792 1793 - static int sgtl5000_i2c_remove(struct i2c_client *client) 1793 + static void sgtl5000_i2c_remove(struct i2c_client *client) 1794 1794 { 1795 1795 struct sgtl5000_priv *sgtl5000 = i2c_get_clientdata(client); 1796 1796 ··· 1800 1800 clk_disable_unprepare(sgtl5000->mclk); 1801 1801 regulator_bulk_disable(sgtl5000->num_supplies, sgtl5000->supplies); 1802 1802 regulator_bulk_free(sgtl5000->num_supplies, sgtl5000->supplies); 1803 - 1804 - return 0; 1805 1803 } 1806 1804 1807 1805 static void sgtl5000_i2c_shutdown(struct i2c_client *client)
+2 -4
sound/soc/codecs/sta350.c
··· 1242 1242 return ret; 1243 1243 } 1244 1244 1245 - static int sta350_i2c_remove(struct i2c_client *client) 1246 - { 1247 - return 0; 1248 - } 1245 + static void sta350_i2c_remove(struct i2c_client *client) 1246 + {} 1249 1247 1250 1248 static const struct i2c_device_id sta350_i2c_id[] = { 1251 1249 { "sta350", 0 },
+1 -2
sound/soc/codecs/tas2552.c
··· 736 736 return ret; 737 737 } 738 738 739 - static int tas2552_i2c_remove(struct i2c_client *client) 739 + static void tas2552_i2c_remove(struct i2c_client *client) 740 740 { 741 741 pm_runtime_disable(&client->dev); 742 - return 0; 743 742 } 744 743 745 744 static const struct i2c_device_id tas2552_id[] = {
+2 -4
sound/soc/codecs/tas5086.c
··· 981 981 return ret; 982 982 } 983 983 984 - static int tas5086_i2c_remove(struct i2c_client *i2c) 985 - { 986 - return 0; 987 - } 984 + static void tas5086_i2c_remove(struct i2c_client *i2c) 985 + {} 988 986 989 987 static struct i2c_driver tas5086_i2c_driver = { 990 988 .driver = {
+1 -3
sound/soc/codecs/tas571x.c
··· 884 884 return ret; 885 885 } 886 886 887 - static int tas571x_i2c_remove(struct i2c_client *client) 887 + static void tas571x_i2c_remove(struct i2c_client *client) 888 888 { 889 889 struct tas571x_private *priv = i2c_get_clientdata(client); 890 890 891 891 regulator_bulk_disable(priv->chip->num_supply_names, priv->supplies); 892 - 893 - return 0; 894 892 } 895 893 896 894 static const struct of_device_id tas571x_of_match[] __maybe_unused = {
+1 -2
sound/soc/codecs/tas5805m.c
··· 522 522 return 0; 523 523 } 524 524 525 - static int tas5805m_i2c_remove(struct i2c_client *i2c) 525 + static void tas5805m_i2c_remove(struct i2c_client *i2c) 526 526 { 527 527 struct device *dev = &i2c->dev; 528 528 struct tas5805m_priv *tas5805m = dev_get_drvdata(dev); ··· 531 531 gpiod_set_value(tas5805m->gpio_pdn_n, 0); 532 532 usleep_range(10000, 15000); 533 533 regulator_disable(tas5805m->pvdd); 534 - return 0; 535 534 } 536 535 537 536 static const struct i2c_device_id tas5805m_i2c_id[] = {
+1 -3
sound/soc/codecs/tas6424.c
··· 774 774 return ret; 775 775 } 776 776 777 - static int tas6424_i2c_remove(struct i2c_client *client) 777 + static void tas6424_i2c_remove(struct i2c_client *client) 778 778 { 779 779 struct device *dev = &client->dev; 780 780 struct tas6424_data *tas6424 = dev_get_drvdata(dev); ··· 790 790 tas6424->supplies); 791 791 if (ret < 0) 792 792 dev_err(dev, "unable to disable supplies: %d\n", ret); 793 - 794 - return 0; 795 793 } 796 794 797 795 static const struct i2c_device_id tas6424_i2c_ids[] = {
+1 -2
sound/soc/codecs/tlv320adc3xxx.c
··· 1426 1426 return ret; 1427 1427 } 1428 1428 1429 - static int __exit adc3xxx_i2c_remove(struct i2c_client *client) 1429 + static void __exit adc3xxx_i2c_remove(struct i2c_client *client) 1430 1430 { 1431 1431 struct adc3xxx *adc3xxx = i2c_get_clientdata(client); 1432 1432 ··· 1434 1434 clk_disable_unprepare(adc3xxx->mclk); 1435 1435 adc3xxx_free_gpio(adc3xxx); 1436 1436 snd_soc_unregister_component(&client->dev); 1437 - return 0; 1438 1437 } 1439 1438 1440 1439 static const struct of_device_id tlv320adc3xxx_of_match[] = {
+1 -3
sound/soc/codecs/tlv320aic32x4-i2c.c
··· 45 45 return aic32x4_probe(&i2c->dev, regmap); 46 46 } 47 47 48 - static int aic32x4_i2c_remove(struct i2c_client *i2c) 48 + static void aic32x4_i2c_remove(struct i2c_client *i2c) 49 49 { 50 50 aic32x4_remove(&i2c->dev); 51 - 52 - return 0; 53 51 } 54 52 55 53 static const struct i2c_device_id aic32x4_i2c_id[] = {
+1 -3
sound/soc/codecs/tlv320aic3x-i2c.c
··· 41 41 return aic3x_probe(&i2c->dev, regmap, id->driver_data); 42 42 } 43 43 44 - static int aic3x_i2c_remove(struct i2c_client *i2c) 44 + static void aic3x_i2c_remove(struct i2c_client *i2c) 45 45 { 46 46 aic3x_remove(&i2c->dev); 47 - 48 - return 0; 49 47 } 50 48 51 49 static const struct of_device_id aic3x_of_id[] = {
+1 -3
sound/soc/codecs/tlv320dac33.c
··· 1536 1536 return ret; 1537 1537 } 1538 1538 1539 - static int dac33_i2c_remove(struct i2c_client *client) 1539 + static void dac33_i2c_remove(struct i2c_client *client) 1540 1540 { 1541 1541 struct tlv320dac33_priv *dac33 = i2c_get_clientdata(client); 1542 1542 ··· 1545 1545 1546 1546 if (dac33->power_gpio >= 0) 1547 1547 gpio_free(dac33->power_gpio); 1548 - 1549 - return 0; 1550 1548 } 1551 1549 1552 1550 static const struct i2c_device_id tlv320dac33_i2c_id[] = {
+1 -3
sound/soc/codecs/wm1250-ev1.c
··· 228 228 return 0; 229 229 } 230 230 231 - static int wm1250_ev1_remove(struct i2c_client *i2c) 231 + static void wm1250_ev1_remove(struct i2c_client *i2c) 232 232 { 233 233 wm1250_ev1_free(i2c); 234 - 235 - return 0; 236 234 } 237 235 238 236 static const struct i2c_device_id wm1250_ev1_i2c_id[] = {
+1 -3
sound/soc/codecs/wm2200.c
··· 2414 2414 return ret; 2415 2415 } 2416 2416 2417 - static int wm2200_i2c_remove(struct i2c_client *i2c) 2417 + static void wm2200_i2c_remove(struct i2c_client *i2c) 2418 2418 { 2419 2419 struct wm2200_priv *wm2200 = i2c_get_clientdata(i2c); 2420 2420 ··· 2427 2427 gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 0); 2428 2428 regulator_bulk_disable(ARRAY_SIZE(wm2200->core_supplies), 2429 2429 wm2200->core_supplies); 2430 - 2431 - return 0; 2432 2430 } 2433 2431 2434 2432 #ifdef CONFIG_PM
+1 -3
sound/soc/codecs/wm5100.c
··· 2635 2635 return ret; 2636 2636 } 2637 2637 2638 - static int wm5100_i2c_remove(struct i2c_client *i2c) 2638 + static void wm5100_i2c_remove(struct i2c_client *i2c) 2639 2639 { 2640 2640 struct wm5100_priv *wm5100 = i2c_get_clientdata(i2c); 2641 2641 ··· 2651 2651 gpio_set_value_cansleep(wm5100->pdata.ldo_ena, 0); 2652 2652 gpio_free(wm5100->pdata.ldo_ena); 2653 2653 } 2654 - 2655 - return 0; 2656 2654 } 2657 2655 2658 2656 #ifdef CONFIG_PM
+1 -2
sound/soc/codecs/wm8804-i2c.c
··· 25 25 return wm8804_probe(&i2c->dev, regmap); 26 26 } 27 27 28 - static int wm8804_i2c_remove(struct i2c_client *i2c) 28 + static void wm8804_i2c_remove(struct i2c_client *i2c) 29 29 { 30 30 wm8804_remove(&i2c->dev); 31 - return 0; 32 31 } 33 32 34 33 static const struct i2c_device_id wm8804_i2c_id[] = {
+2 -4
sound/soc/codecs/wm8900.c
··· 1282 1282 return ret; 1283 1283 } 1284 1284 1285 - static int wm8900_i2c_remove(struct i2c_client *client) 1286 - { 1287 - return 0; 1288 - } 1285 + static void wm8900_i2c_remove(struct i2c_client *client) 1286 + {} 1289 1287 1290 1288 static const struct i2c_device_id wm8900_i2c_id[] = { 1291 1289 { "wm8900", 0 },
+1 -3
sound/soc/codecs/wm8903.c
··· 2182 2182 return ret; 2183 2183 } 2184 2184 2185 - static int wm8903_i2c_remove(struct i2c_client *client) 2185 + static void wm8903_i2c_remove(struct i2c_client *client) 2186 2186 { 2187 2187 struct wm8903_priv *wm8903 = i2c_get_clientdata(client); 2188 2188 ··· 2191 2191 if (client->irq) 2192 2192 free_irq(client->irq, wm8903); 2193 2193 wm8903_free_gpio(wm8903); 2194 - 2195 - return 0; 2196 2194 } 2197 2195 2198 2196 static const struct of_device_id wm8903_of_match[] = {
+2 -4
sound/soc/codecs/wm8960.c
··· 1486 1486 return ret; 1487 1487 } 1488 1488 1489 - static int wm8960_i2c_remove(struct i2c_client *client) 1490 - { 1491 - return 0; 1492 - } 1489 + static void wm8960_i2c_remove(struct i2c_client *client) 1490 + {} 1493 1491 1494 1492 static const struct i2c_device_id wm8960_i2c_id[] = { 1495 1493 { "wm8960", 0 },
+1 -2
sound/soc/codecs/wm8962.c
··· 3778 3778 return ret; 3779 3779 } 3780 3780 3781 - static int wm8962_i2c_remove(struct i2c_client *client) 3781 + static void wm8962_i2c_remove(struct i2c_client *client) 3782 3782 { 3783 3783 pm_runtime_disable(&client->dev); 3784 - return 0; 3785 3784 } 3786 3785 3787 3786 #ifdef CONFIG_PM
+1 -3
sound/soc/codecs/wm8993.c
··· 1722 1722 return ret; 1723 1723 } 1724 1724 1725 - static int wm8993_i2c_remove(struct i2c_client *i2c) 1725 + static void wm8993_i2c_remove(struct i2c_client *i2c) 1726 1726 { 1727 1727 struct wm8993_priv *wm8993 = i2c_get_clientdata(i2c); 1728 1728 1729 1729 if (i2c->irq) 1730 1730 free_irq(i2c->irq, wm8993); 1731 1731 regulator_bulk_disable(ARRAY_SIZE(wm8993->supplies), wm8993->supplies); 1732 - 1733 - return 0; 1734 1732 } 1735 1733 1736 1734 static const struct i2c_device_id wm8993_i2c_id[] = {
+1 -3
sound/soc/codecs/wm8996.c
··· 3065 3065 return ret; 3066 3066 } 3067 3067 3068 - static int wm8996_i2c_remove(struct i2c_client *client) 3068 + static void wm8996_i2c_remove(struct i2c_client *client) 3069 3069 { 3070 3070 struct wm8996_priv *wm8996 = i2c_get_clientdata(client); 3071 3071 ··· 3074 3074 gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0); 3075 3075 gpio_free(wm8996->pdata.ldo_ena); 3076 3076 } 3077 - 3078 - return 0; 3079 3077 } 3080 3078 3081 3079 static const struct i2c_device_id wm8996_i2c_id[] = {
+2 -4
sound/soc/codecs/wm9081.c
··· 1356 1356 return 0; 1357 1357 } 1358 1358 1359 - static int wm9081_i2c_remove(struct i2c_client *client) 1360 - { 1361 - return 0; 1362 - } 1359 + static void wm9081_i2c_remove(struct i2c_client *client) 1360 + {} 1363 1361 1364 1362 static const struct i2c_device_id wm9081_i2c_id[] = { 1365 1363 { "wm9081", 0 },