summaryrefslogtreecommitdiff
path: root/drivers/mfd/wm8350-i2c.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2018-10-19 11:59:58 +0300
committerWolfram Sang <wsa@the-dreams.de>2018-11-01 02:33:34 +0300
commit6f108dd70d3010c391c1e9f56f3f20d1f9e75450 (patch)
tree45c87c78d6a3e6bb0009dff6ebd50880150d9a52 /drivers/mfd/wm8350-i2c.c
parentb9bb3fdf4e870fb655064f5c3c81c1fee7fd89ce (diff)
downloadlinux-6f108dd70d3010c391c1e9f56f3f20d1f9e75450.tar.xz
i2c: Clear client->irq in i2c_device_remove
The IRQ will be mapped in i2c_device_probe only if client->irq is zero and i2c_device_remove does not clear this. When rebinding an I2C device, whos IRQ provider has also been rebound this means that an IRQ mapping will never be created, causing the I2C device to fail to acquire its IRQ. Fix this issue by clearing client->irq in i2c_device_remove, forcing i2c_device_probe to lookup the mapping again. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/mfd/wm8350-i2c.c')
0 files changed, 0 insertions, 0 deletions