i2c: rely on driver core when sanitizing devices
authorWolfram Sang <wsa@the-dreams.de>
Tue, 21 Jan 2014 16:48:34 +0000 (17:48 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 24 Jan 2014 18:52:25 +0000 (19:52 +0100)
commit72fa818e8a3145ab3e345acbd3eccfa71a120702
tree052a8a84656ea64ca4383ec4804f99b7e65f9cc2
parent21d0b7c0faf2f780afa2bef72cc921ace10a7356
i2c: rely on driver core when sanitizing devices

Commit 0998d0631001 (device-core: Ensure drvdata = NULL when no driver
is bound) modified the driver core to always clear .driver and .drvdata
on remove or probe error. No need for the I2C core to do it.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c