platform/mellanox: mlxreg-hotplug: convert to use i2c_new_client_device()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 26 Mar 2020 21:09:52 +0000 (22:09 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 26 Apr 2020 08:58:49 +0000 (10:58 +0200)
commit84c0eb212c88176142a0aaf1f896d9bddd8bcb7a
treefbffe891d9a96b77a6ec457f39ef0fc33e3c1dfb
parente14d796d8339405d0daff98cdaf1465706a90ffb
platform/mellanox: mlxreg-hotplug: convert to use i2c_new_client_device()

Move away from the deprecated API and return the shiny new ERRPTR where
useful.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/platform/mellanox/mlxreg-hotplug.c