hwmon: (w83791d) convert to use devm_i2c_new_dummy_device
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 3 Sep 2019 18:12:54 +0000 (20:12 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 3 Sep 2019 19:47:17 +0000 (12:47 -0700)
commit358d2071100d84cfe6ef4a9d70ac0d998a1d501e
treeee013d7e4470e2b0d970f2a10dd728dbcc021ba2
parent09fe787051db0cf84cd9fcf041dbdd2ba416c6dc
hwmon: (w83791d) convert to use devm_i2c_new_dummy_device

And simplify the error handling.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20190903181256.13450-2-wsa+renesas@sang-engineering.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/w83791d.c