Skip to contentSkip to conversation

mfd: smsc-ece1099: Remove unnecessarily remove callback

PATCH Applied Laxman Dewangan 2 participants 2 messages Apr 21, 2016 – Apr 25, 2016 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Benoit Cousson <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Santosh Shilimkar <[email protected]>

---
This is build and compile tested only.

 drivers/mfd/smsc-ece1099.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/mfd/smsc-ece1099.c +0 -10
index a4c0df7..7f89e89 100644
@@ -80,15 +80,6 @@ err:
 	return ret;
 }
 
-static int smsc_i2c_remove(struct i2c_client *i2c)
-{
-	struct smsc *smsc = i2c_get_clientdata(i2c);
-
-	mfd_remove_devices(smsc->dev);
-
-	return 0;
-}
-
 static const struct i2c_device_id smsc_i2c_id[] = {
 	{ "smscece1099", 0},
 	{},
@@ -100,7 +91,6 @@ static struct i2c_driver smsc_i2c_driver = {
 		   .name = "smsc",
 	},
 	.probe = smsc_i2c_probe,
-	.remove = smsc_i2c_remove,
 	.id_table = smsc_i2c_id,
 };
 
Signature · 1 line
2.1.4
Applied
#1 lore raw
Quoted 12 lines · Laxman Dewangan

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.

Cc Benoit Cousson <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Santosh Shilimkar <[email protected]>
Quoted 5 lines

---
This is build and compile tested only.

 drivers/mfd/smsc-ece1099.c | 10 ----------
 1 file changed, 10 deletions(-)

Applied, thanks.

Quoted 28 lines
drivers/mfd/smsc-ece1099.c +0 -10
index a4c0df7..7f89e89 100644
@@ -80,15 +80,6 @@ err:
 	return ret;
 }
 
-static int smsc_i2c_remove(struct i2c_client *i2c)
-{
-	struct smsc *smsc = i2c_get_clientdata(i2c);
-
-	mfd_remove_devices(smsc->dev);
-
-	return 0;
-}
-
 static const struct i2c_device_id smsc_i2c_id[] = {
 	{ "smscece1099", 0},
 	{},
@@ -100,7 +91,6 @@ static struct i2c_driver smsc_i2c_driver = {
 		   .name = "smsc",
 	},
 	.probe = smsc_i2c_probe,
-	.remove = smsc_i2c_remove,
 	.id_table = smsc_i2c_id,
 };
 
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog