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

mfd: smsc-ece1099: Remove unnecessarily remove callback

SMSC MFD driver does not add any MFD child devices via
mfd_add_devices() and hence it is not required to call
mfd_remove_devices() to remove MFD child devices.

Remove the call of the API mfd_remove_devices() which will
result as remove of .remove callback for driver.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Laxman Dewangan and committed by
Lee Jones
030ab2be 5eb519f3

-10
-10
drivers/mfd/smsc-ece1099.c
··· 80 80 return ret; 81 81 } 82 82 83 - static int smsc_i2c_remove(struct i2c_client *i2c) 84 - { 85 - struct smsc *smsc = i2c_get_clientdata(i2c); 86 - 87 - mfd_remove_devices(smsc->dev); 88 - 89 - return 0; 90 - } 91 - 92 83 static const struct i2c_device_id smsc_i2c_id[] = { 93 84 { "smscece1099", 0}, 94 85 {}, ··· 91 100 .name = "smsc", 92 101 }, 93 102 .probe = smsc_i2c_probe, 94 - .remove = smsc_i2c_remove, 95 103 .id_table = smsc_i2c_id, 96 104 }; 97 105