Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: ocores: 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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Wolfram Sang and committed by
Wolfram Sang
7de69dbf 7fd0379f

+1 -1
+1 -1
drivers/i2c/busses/i2c-ocores.c
··· 731 731 /* add in known devices to the bus */ 732 732 if (pdata) { 733 733 for (i = 0; i < pdata->num_devices; i++) 734 - i2c_new_device(&i2c->adap, pdata->devices + i); 734 + i2c_new_client_device(&i2c->adap, pdata->devices + i); 735 735 } 736 736 737 737 return 0;