Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp502294ybl; Tue, 7 Jan 2020 09:50:17 -0800 (PST) X-Google-Smtp-Source: APXvYqz/0JpMu8MNUKajZqjDlcrPxfQUXg8IkmUnXFhTu4dNbcumcywwMQf1sCExgKGRpFZyEW6g X-Received: by 2002:a9d:7ada:: with SMTP id m26mr986351otn.111.1578419417060; Tue, 07 Jan 2020 09:50:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419417; cv=none; d=google.com; s=arc-20160816; b=zMz2amkqid6op1QNU9FaBZQm9fy20YoU1evhVyqc1s9Lb4CoSeot+7nrkJ04Zq7zms QPZhwXkoR8XOoPSMWawzuaJUVP0a0MZ8TUcWrfnKKbH8VOMM1dFzYFroQgxxnHCCXPEp Oj6x7R5eqODvepZ6NzmMeqcznQXTiC5gIEgu2b/CJJTmEE2TIFF4Fuogo28Jxr9ik7GB g3YSbPNHf3wPkSNMQEf2H5ND1f9KFQxCNfSTN/L9EXm7CopAIBhKnytW2LRIc58ya9fv jlwhmR/hhdhANbOVxNKQZeUnu5Us1IsVA11zHoigvNs0KDMdbRdZ35KY6hXl2U5CkCai 5ZNw== 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=/epA2Bdqp0c8aPSZLS8uM1l3afQHT/TwzcAC0ZTTOXc=; b=OCjRLTT+6ScpOuLkEQ7cNutLE0nCkdCyzti/jyIyRM9KQH9sDkB212bZnHe7MYKzJL 2OyYtZV+Zr92S4whOGc5cqnctp4QyT5h0UhyMdsbDq8wU21wxL+4FeciEJ7peDrxwHRA mKGtQ3otgkaTDqdmQxbAg7uHxdRlw2xHJRTYBb/GkywhIM8BqLd4y1lQLKoM9nOqUGl7 kgUAPOowXQYFxuBlk6qYdreNG7feze0VRc2SGpN8K4zkYZkSpE579LR0zQjtTcWQuWdl /cLMd8gSdv5TxmnATm/hC8af1TnNmSl6ZizHCZc9/ytM8fJ2qnA3zCZoFYolvqQ/xU60 9Nig== 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 g16si262149otj.79.2020.01.07.09.50.04; Tue, 07 Jan 2020 09:50:17 -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 S1728662AbgAGRso (ORCPT + 99 others); Tue, 7 Jan 2020 12:48:44 -0500 Received: from sauhun.de ([88.99.104.3]:53374 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728407AbgAGRsV (ORCPT ); Tue, 7 Jan 2020 12:48:21 -0500 Received: from localhost (p5486CF8B.dip0.t-ipconnect.de [84.134.207.139]) by pokefinder.org (Postfix) with ESMTPSA id 5C1642C3959; Tue, 7 Jan 2020 18:48:19 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Michal Simek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/12] i2c: xiic: convert to use i2c_new_client_device() Date: Tue, 7 Jan 2020 18:47:41 +0100 Message-Id: <20200107174748.9616-8-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-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; -- 2.20.1