diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2018-05-08 11:44:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-08 13:41:48 +0200 |
commit | 95b2f82d63f6d0888db188dddf76433dce32affe (patch) | |
tree | 3507a4c23233a4dd8639c8d51860ad4c7d514af0 /drivers/staging/most | |
parent | ceb1edc2a0a52b6f4285fbfc8f29a42b6109e52d (diff) | |
download | talos-obmc-linux-95b2f82d63f6d0888db188dddf76433dce32affe.tar.gz talos-obmc-linux-95b2f82d63f6d0888db188dddf76433dce32affe.zip |
staging: most: i2c: remove unnecessary poison_channel call
This removes call of the poison_channel that is:
- not allowed after most_deregister_interface;
- is made during the most_deregister_interface call.
Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/i2c/i2c.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/most/i2c/i2c.c b/drivers/staging/most/i2c/i2c.c index 501eec0783a1..8ec660bd2990 100644 --- a/drivers/staging/most/i2c/i2c.c +++ b/drivers/staging/most/i2c/i2c.c @@ -376,16 +376,11 @@ static int i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) static int i2c_remove(struct i2c_client *client) { struct hdm_i2c *dev = i2c_get_clientdata(client); - int i; if (!dev->polling_mode) free_irq(client->irq, dev); most_deregister_interface(&dev->most_iface); - - for (i = 0 ; i < NUM_CHANNELS; i++) - if (dev->is_open[i]) - poison_channel(&dev->most_iface, i); cancel_delayed_work_sync(&dev->rx.dwork); kfree(dev); |