From: Wolfram Sang Date: Tue, 7 Jan 2020 17:47:41 +0000 (+0100) Subject: i2c: xiic: convert to use i2c_new_client_device() X-Git-Tag: v5.6-rc1~31^2~53 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bf255befe7adc14ba42bf71fbee4e84f54249e07;p=linux-2.6-block.git i2c: xiic: 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 Acked-by: Michal Simek Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index d8d49f1814c7..61e081b186cc 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -806,7 +806,7 @@ static int xiic_i2c_probe(struct platform_device *pdev) if (pdata) { /* add in known devices to the bus */ for (i = 0; i < pdata->num_devices; i++) - i2c_new_device(&i2c->adap, pdata->devices + i); + i2c_new_client_device(&i2c->adap, pdata->devices + i); } return 0;