Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2375212pja; Thu, 26 Mar 2020 14:12:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv1B0/dJvDBFKqz9cX1E036FSiol0vOR8UTTFQRaRcWqKvyFlYzL22zfOB24rO10okhnWw+ X-Received: by 2002:a9d:a22:: with SMTP id 31mr7655487otg.349.1585257125209; Thu, 26 Mar 2020 14:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585257125; cv=none; d=google.com; s=arc-20160816; b=vrT7I7+WHyjLOJwZcovJtLZVPPGt7XFHU1c/TcxDVgxHgzv+x3iOPJjyd1AmvdqaIx TJ1NC/hYG1jO6ReKy5ZBsJ66PE+7VjQUi2/s4/0tVnslQflVxQi8XbO1gyFRMM78hcN/ vMBQ5Wmoizz5hyctv8uLTKn5pI/ykUhLJIBKmTZSOED/lAlgR1hwBypJwOjW/137c3zn ahL1LuQXWAn+RuhNJbUZc8UNgqO9aDyL0iMF1ho+cqx30W2jKkyiCFCK3vhMn73Ugt6A NkO0WzcYJhYELEuwKn7/WdU+0g3d9ym8hEcOHBLEtvNhH5CNVuKFDyonO0Kb3azRw01a 4eXA== 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=otWTqEREGzqOdZArmY+85AXQFlXtnrR0lYA/GYH2gbg=; b=tHcbjI4/wxJbdkBYeQ4U5Li/UPwRrW+dgKolcCb4CchqEXv7w1jDXOSIgtc18KinpW EjCU6gdHl309qNiU76P3oDxxxr3gRweBUZCmGE66QMZj50FK5RpG+Mh4pxg0A6JfJpGs 9IosUkOjmMt4XA6RkRtUXW62VxH8+4wycQsWAccY8T2OnoBx/dwTXhStaio64Ogj44xA uSBqQkz+QSXC5WBSa8bnImKIYwlNcHL34papOP9HhThvgq9Al08adGnMEoMWrDCou9QN B34Syqqx0T0tgwhwvqAYwsqGpDs3LTeL+eGFCMdnpuQ9LcuZ0GDqBB5/52J8yPGOyAoz bU2A== 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 v6si1529719oif.149.2020.03.26.14.11.52; Thu, 26 Mar 2020 14:12:05 -0700 (PDT) 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 S1727846AbgCZVLH (ORCPT + 99 others); Thu, 26 Mar 2020 17:11:07 -0400 Received: from sauhun.de ([88.99.104.3]:54576 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727972AbgCZVKQ (ORCPT ); Thu, 26 Mar 2020 17:10:16 -0400 Received: from localhost (p54B3331F.dip0.t-ipconnect.de [84.179.51.31]) by pokefinder.org (Postfix) with ESMTPSA id 3626F2C1F8B; Thu, 26 Mar 2020 22:10:15 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Kukjin Kim , Krzysztof Kozlowski , Russell King , patches@opensource.cirrus.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] ARM: mach-s3c64xx: convert to use i2c_new_client_device() Date: Thu, 26 Mar 2020 22:10:14 +0100 Message-Id: <20200326211014.13591-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200326211014.13591-1-wsa+renesas@sang-engineering.com> References: <20200326211014.13591-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 remove printing a stale 'ret' value. Signed-off-by: Wolfram Sang --- arch/arm/mach-s3c64xx/mach-crag6410-module.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c index 937d0a83f8fd..34f1baa10c54 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c @@ -405,10 +405,9 @@ static int wlf_gf_module_probe(struct i2c_client *i2c, gf_mods[i].name, rev + 1); for (j = 0; j < gf_mods[i].num_i2c_devs; j++) { - if (!i2c_new_device(i2c->adapter, - &(gf_mods[i].i2c_devs[j]))) - dev_err(&i2c->dev, - "Failed to register dev: %d\n", ret); + if (IS_ERR(i2c_new_client_device(i2c->adapter, + &(gf_mods[i].i2c_devs[j])))) + dev_err(&i2c->dev, "Failed to register\n"); } spi_register_board_info(gf_mods[i].spi_devs, -- 2.20.1