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: NChris Packham <chris.packham@alliedtelesis.co.nz> [wsa: adapted error handling I added in previous patch] Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
Showing
想要评论请 注册 或 登录