diff options
-rw-r--r-- | drivers/i2c/i2c-core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index fbb9030b68a5..456caa80bfd3 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -581,7 +581,8 @@ static int i2c_do_del_adapter(struct device_driver *d, void *data) | |||
581 | struct i2c_client *client, *_n; | 581 | struct i2c_client *client, *_n; |
582 | int res; | 582 | int res; |
583 | 583 | ||
584 | /* Remove the devices we created ourselves */ | 584 | /* Remove the devices we created ourselves as the result of hardware |
585 | * probing (using a driver's detect method) */ | ||
585 | list_for_each_entry_safe(client, _n, &driver->clients, detected) { | 586 | list_for_each_entry_safe(client, _n, &driver->clients, detected) { |
586 | if (client->adapter == adapter) { | 587 | if (client->adapter == adapter) { |
587 | dev_dbg(&adapter->dev, "Removing %s at 0x%x\n", | 588 | dev_dbg(&adapter->dev, "Removing %s at 0x%x\n", |
@@ -749,6 +750,8 @@ static int __detach_adapter(struct device *dev, void *data) | |||
749 | struct i2c_driver *driver = data; | 750 | struct i2c_driver *driver = data; |
750 | struct i2c_client *client, *_n; | 751 | struct i2c_client *client, *_n; |
751 | 752 | ||
753 | /* Remove the devices we created ourselves as the result of hardware | ||
754 | * probing (using a driver's detect method) */ | ||
752 | list_for_each_entry_safe(client, _n, &driver->clients, detected) { | 755 | list_for_each_entry_safe(client, _n, &driver->clients, detected) { |
753 | dev_dbg(&adapter->dev, "Removing %s at 0x%x\n", | 756 | dev_dbg(&adapter->dev, "Removing %s at 0x%x\n", |
754 | client->name, client->addr); | 757 | client->name, client->addr); |