From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Subject: Re: [PATCH 07/12] i2c: xiic: convert to use i2c_new_client_device() Date: Wed, 8 Jan 2020 12:39:03 +0100 Message-ID: References: <20200107174748.9616-1-wsa+renesas@sang-engineering.com> <20200107174748.9616-8-wsa+renesas@sang-engineering.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200107174748.9616-8-wsa+renesas@sang-engineering.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Wolfram Sang , linux-i2c@vger.kernel.org, Shubhrajyoti Datta Cc: "git@Xilinx.com" , Michal Simek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: linux-i2c@vger.kernel.org On 07. 01. 20 18:47, Wolfram Sang wrote: > Move away from the deprecated API and return the shiny new ERRPTR where > useful. > > Signed-off-by: Wolfram Sang > --- > Build tested only. > > drivers/i2c/busses/i2c-xiic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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; > Acked-by: Michal Simek Shubhrajyoti: Can you please retest? Thanks, Michal