Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1728924imm; Sat, 2 Jun 2018 07:33:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKhJacrY5kK/93127vEFT0PqyeNL8JjbB33JBOVkj+jL5Lfhr0AYGCWFcFmFHNOrkmrVNj7 X-Received: by 2002:a65:43cb:: with SMTP id n11-v6mr11890902pgp.234.1527950024850; Sat, 02 Jun 2018 07:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527950024; cv=none; d=google.com; s=arc-20160816; b=plALDgpqmKBiK5ziB8bg/sGE9HFbNI2zbX7jTZRBsFfU+oKLPoPgcmknQfueEExdDw 7ry38omi4BTDZ9xK+fZydABb1921Y7+aZTc0BzwTSsddcdRa9sLVBmlpF7pMC/Yrgose xq68+dYJ8WDAEGKtebJ0CgpxmoxSoY5ftUyIkQWh4tXUWxjcZ15ADArnzcnvcRWEwrjs BEomkVqtNccMWHKMBqOt7d+s11luGRkKUXB3HTJiBYCG0ll3QZfYRRm1xDwzBB7JSCbE cq2v2cpJazr6KpmMWLQy4FNmYYKdW/Hu/hm6/eddFCcIAW2gyQkTXyih3elxS4x0m+i4 bG8A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=rkh1xP5So3pfBxYT6rDrGlioM6TKa+EuF+ibdE5skJU=; b=rc8vds1K2Jtg62AWKxc9w1cv3dpLAAtT7FIfSnk5rsQRpvFIzAb/oDtnnYU6052TUA jIOfqyEcPC87nkKpJW6qvKSa2/8IRT284BX2OrGRwQPwsuMB11B0NkafmBHLF5GXc8+M o0a8VBhWVtfVXESZZ3ht88W7uxv8jo4wZDA/qLPNA/UEwXL73QJu1Sw2Sff9hjZwXYrr 2vE4kFEdIRU/yuTvsj1tzjyR4OtagB4UEiSpioAgFYvQW5LHoqB08yKiTgcPXnWGKNlm TFEW4TmUMWcv1mRA1dL5G96YZfm0WTPPDXwkJlPT10K50YXkgToDmweRDUT3AKA1PS4e X50g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=niLG/PRo; 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 j6-v6si43141791pfc.351.2018.06.02.07.33.29; Sat, 02 Jun 2018 07:33:44 -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; dkim=fail header.i=@lechnology.com header.s=default header.b=niLG/PRo; 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 S1751508AbeFBOdF (ORCPT + 99 others); Sat, 2 Jun 2018 10:33:05 -0400 Received: from vern.gendns.com ([206.190.152.46]:58648 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbeFBOdD (ORCPT ); Sat, 2 Jun 2018 10:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rkh1xP5So3pfBxYT6rDrGlioM6TKa+EuF+ibdE5skJU=; b=niLG/PRohMD2ztPPCOndxKeCVG rhcsfbC2c+ZnEkqD8O8jR+sfTmB4D0p30RPxfFK1K87CisZsy1FDm/ZqchW5atSzPTpioWrb349L8 8fmPHxaD+g3XBxlUKy2M6QQZVZAh4LtzzFxpwa/sCJ4QGtsfLvIRrXMYX93Is9jW5j3pQ0U7JMzeS I/kc4eG8qAIsmroR9lGlJ5/UFHURZ6e3IR++YYjsiPrPAQNfRLz57+qq9mucAvFg6k5vjw5dBmmeE ahGO+Xq5G60smx1bdOQnOrtxooNLdihRt7DB57veP1CAqNqAHGCaBiNfCpnvU5IsC/2Zh8Y67M01C LlQbMQgQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:47590 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fP7aY-007ymV-77; Sat, 02 Jun 2018 10:33:02 -0400 Subject: Re: [PATCH] clk: davinci: cfgchip: testing the wrong variable To: Dan Carpenter Cc: Sekhar Nori , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20180602075256.hrvidsfsmr33mv2f@kili.mountain> From: David Lechner Message-ID: <9444dee2-db66-77ab-06bb-81df888f6287@lechnology.com> Date: Sat, 2 Jun 2018 09:33:00 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180602075256.hrvidsfsmr33mv2f@kili.mountain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/02/2018 02:52 AM, Dan Carpenter wrote: > There is a copy and paste bug here. We should be testing "usb1" instead > of "usb0". > > Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks") > Signed-off-by: Dan Carpenter > > diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c > index c971111d2601..20a120aa147e 100644 > --- a/drivers/clk/davinci/da8xx-cfgchip.c > +++ b/drivers/clk/davinci/da8xx-cfgchip.c > @@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap) > > usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); > if (IS_ERR(usb1)) { > - if (PTR_ERR(usb0) == -EPROBE_DEFER) > + if (PTR_ERR(usb1) == -EPROBE_DEFER) > return -EPROBE_DEFER; > > dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n", > Reviewed-by: David Lechner