Move away from the deprecated API and return the shiny new ERRPTR where
useful.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
        i2cd->gpu_ccgx_ucsi->addr = 0x8;
        i2cd->gpu_ccgx_ucsi->irq = irq;
        i2cd->gpu_ccgx_ucsi->properties = ccgx_props;
-       i2cd->ccgx_client = i2c_new_device(&i2cd->adapter, i2cd->gpu_ccgx_ucsi);
-       if (!i2cd->ccgx_client)
-               return -ENODEV;
+       i2cd->ccgx_client = i2c_new_client_device(&i2cd->adapter, i2cd->gpu_ccgx_ucsi);
+       if (IS_ERR(i2cd->ccgx_client))
+               return PTR_ERR(i2cd->ccgx_client);
 
        return 0;
 }