Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp501896ybl; Tue, 7 Jan 2020 09:49:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxfCH2MAjNUZQ+t+BiLylmepJiSjMsvCMXm4173irrpXpUfCpSlPcWc+xGvgewRdXzFs6/f X-Received: by 2002:a9d:1c95:: with SMTP id l21mr931948ota.271.1578419389007; Tue, 07 Jan 2020 09:49:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419388; cv=none; d=google.com; s=arc-20160816; b=HL5+4PpUOpcu9LFrlGgLtukq7gXoic2+Vv/Lusa0sboGeQsIQ6kgJVB9DYDY17naMt 0qH0d09qEu5kR9OdFegg2tNEHNN/J7KDVu0amPrRLeNqqxLBNtEfc0uAsms0bk6PwSWc q7cKVkOH7WKpB7vF8CXl/9Np35/PiIUGOdwvXk7iLAeKe3+s55VeNSGAq8rxNXQxWuZz FnVqPe7aC3ZbTPhp9ScDh+PJlGaVzSBX3yRe+pbDem0vtQItarfLla7BlCh3I50QEuxP 2FrVK3/3WL2dERi5TQb1ZErkKZAdhnW+g3STNsdclcBl7h3T8dZhn4ZiI7dcgSlghN0Q 2Tnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=85g+JDEUy6TBMgg67psW0i/qQ50tG2MroJlTV2n1CsI=; b=oJq2AkR2l570LkNhrYY2z8K7zqPhVbhMO4qlnncAdhJpxLWIDAJeRmjOl+s8BbsYeL N5Va8AVO/at2AypvuTUjYuyLvEt9ej1uG3yAJV95wU5aeRTy3bw9fFFyA1Q3GpBbXpgs bgkzCbFrag+gbinsoU8p9uspPPnEaNrpTx4gzi6vl4z5r1U5KP7xg2BLADEgTnEIwsuO 8APOJ911DO2L6jilVSAlQuhkKYJuMQ+Acb6MK866k2d032+OYlmNM/fQbVu4blKDxL7r 7sK0SDTMULsCmryir4Q3CjA7xk06m/DiWBtF5jzZTkmCQe95FqgUKlvFSo9/4Hxtk1vG Onuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f189si337673oib.268.2020.01.07.09.49.36; Tue, 07 Jan 2020 09:49:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728584AbgAGRsW (ORCPT + 99 others); Tue, 7 Jan 2020 12:48:22 -0500 Received: from sauhun.de ([88.99.104.3]:53340 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728211AbgAGRsT (ORCPT ); Tue, 7 Jan 2020 12:48:19 -0500 Received: from localhost (p5486CF8B.dip0.t-ipconnect.de [84.134.207.139]) by pokefinder.org (Postfix) with ESMTPSA id A55262C3949; Tue, 7 Jan 2020 18:48:17 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Peter Korsgaard , Andrew Lunn , linux-kernel@vger.kernel.org Subject: [PATCH 04/12] i2c: ocores: convert to use i2c_new_client_device() Date: Tue, 7 Jan 2020 18:47:38 +0100 Message-Id: <20200107174748.9616-5-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200107174748.9616-1-wsa+renesas@sang-engineering.com> References: <20200107174748.9616-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-ocores.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index ca8b3ecfa93d..f5fc75b65a19 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c @@ -731,7 +731,7 @@ static int ocores_i2c_probe(struct platform_device *pdev) /* add in known devices to the bus */ if (pdata) { 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; -- 2.20.1