i2c: pca-platform: use device managed allocations
commitfa70ca7c287ee63b790fbb3de624a0c80a6e2be2
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Mon, 26 Jun 2017 00:44:33 +0000 (26 12:44 +1200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 27 Jun 2017 19:50:21 +0000 (27 21:50 +0200)
tree29cbe94be74e4cf94e9d24a890bbe4d77e92ae32
parent0e8ce93bdceb6d36a3c1db2227d3f51168fb796c
i2c: pca-platform: use device managed allocations

Switch to using the devm_ APIs and remove the now unnecessary error
handling and most of the device removal code.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
[wsa: adapted error handling I added in previous patch]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pca-platform.c