mfd: tps80031: Convert to devm_i2c_new_dummy_device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 22 Jul 2019 17:26:35 +0000 (19:26 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 12 Aug 2019 07:40:45 +0000 (08:40 +0100)
commita604e5b29ce6cf5ec2950df7a5562ac2dd8d70e2
tree150bc92a41bac4ee3107a94a5969d95b94805670
parent624e3fceb533b33927535aaec713bd91ec80e99b
mfd: tps80031: Convert to devm_i2c_new_dummy_device

Move from i2c_new_dummy() to devm_i2c_new_dummy_device(). So, we now get
an ERRPTR which we use in error handling and we can skip removal of the
created devices.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tps80031.c