Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2189252imm; Thu, 21 Jun 2018 08:30:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL6g8CuDFX9qbl3JTAPyCGN5Y5jSpCaUGTFEQI+82ibYfAlyOHOh3aXxrOjer/6Edh1EwkN X-Received: by 2002:a65:5648:: with SMTP id m8-v6mr22758677pgs.19.1529595039488; Thu, 21 Jun 2018 08:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529595039; cv=none; d=google.com; s=arc-20160816; b=r6HsGnvwbon2fzWy2z9JOMDPOIe36M13POUCTWcYvnJuu/X4oAa9mNw4ezvFy+vDPE Fb3tKIXScjL6IUSRGkMIXpjzunf/devFEEv7ZgSp6IACLcHSE77JjYOmAduPt843Zipn C3niFRLhVey86GszFpE9wBFqU+x7MqGjW8Rhl6J4UkP0MQocB6SA3h1WfG9vVR8rCcQC yOVRAkE+EsyF7rlLCMprW0SI9xirrVsuHK4vKEY931tITKL2KuQ+833fhmDffrODsq1M xerNHC/qvUFOD09B1CwOojIHK9wDDukmOYcJoLTuby7BS8j67pz0i+x6lZM0tMPFpEIX lJPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=8dwTNHNqerDcaI9W+uVpUxbKTZ/QR7xb4AwfA/KGcjc=; b=sBZzTsBygQHXY7Xhi3MYzziMUxS7et5lK/PItlx+369PsZJXpo23QlKaMsUymqvw+2 saQSlCwhEJsfi/OJ80Yt1d2DSsM+Db3u8Gfa5x9WRAdIf4G/HeZ5YzPqVb18aZiWKVTU 3MCxGGzyHdNanaJmhwg4Kg2zcHJomZAMI28RjGOn8HId2lQG6BnCuiHBqKMbFQoa7o7k ckWb3mQ8LWLys0rryUedf8ziNHNmUgC4CzRMgk1pwWPdhPN03Sh+7ja5C5xmf5j5dN2s H6qUVJZJ1eCzAWNxSxpE/9hRkuvUA107SImHnSGJGdnzoOcRr6HX9C73IqzllFsFO7dU DhjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Tefjaqiz; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4-v6si4671307pfh.256.2018.06.21.08.30.24; Thu, 21 Jun 2018 08:30:39 -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=@gmail.com header.s=20161025 header.b=Tefjaqiz; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933270AbeFUP1y (ORCPT + 99 others); Thu, 21 Jun 2018 11:27:54 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39899 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933114AbeFUP1x (ORCPT ); Thu, 21 Jun 2018 11:27:53 -0400 Received: by mail-lf0-f67.google.com with SMTP id t2-v6so4918109lfd.6; Thu, 21 Jun 2018 08:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8dwTNHNqerDcaI9W+uVpUxbKTZ/QR7xb4AwfA/KGcjc=; b=Tefjaqiza4vwbUphZNVwXH7XFiM7QT+Lq55jXE/syWpid0u12UhICkeSx0SndFn/8y yqp5NRVSwEV8lhz0KUuWoAVWI17WQZROBHVS+fNULFwvD3SFI1OjaitPgIwYMC3tfH+N fTJzUW0C+2jQf9Wh+NV5+GJ7I3KwqJ7a56SXRpd59s8ekLMHOQXV3qAA7FGu3BohrzBP m8xFNsattH/NDcmW1pih6Uf0UfK/jOzBRqG9C0fhs8ye752Ev1jPnfqh6e4NwSP5Fu+5 SWijswIrQu9282sqXPgohQd7cboaFnKs4UFD/h/ngvkHBmLzOZEOiH+HwGaxycuFk0K8 Y9Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=8dwTNHNqerDcaI9W+uVpUxbKTZ/QR7xb4AwfA/KGcjc=; b=qhYDg8Ge8wpN76kPT7Eicdx9F6QxOobD6AkPjoMLP0UcClKfJ5xjf/bqc3rgkoZnaM OTIvxJGOLOPsRLxfuoWnsxddVZ1UlfY/s6OVfVVPVV61rLcKSBagpH2ttmRdPZE6pVof 0qtQeEGG7B/YcCEnYyk+h5EJSzl7Q9OhO/FXNBCGc4rblbFAn4Yx0fHccMmhTsSTzGah QzJryYItqh9jdFIX4zCmE28SeSPTX5gtOyysR0zJhgPbev5kdp1BbCsX0FKvd6dyjen5 kspYbJbmZpdP4nMf1Uu5R6uyIGrHjN0pHaDTuTLPKO7/QZUjO2EbZLbOVoAcVCnbWCdt ZdNg== X-Gm-Message-State: APt69E2psU00KWFXfGlVJnh2ic5bAP3QRA650YZzww6YqgUopadEvcD2 ndyPZ+MDhANoG16JAcnClyHF8zf0 X-Received: by 2002:a19:6801:: with SMTP id d1-v6mr1687452lfc.138.1529594871479; Thu, 21 Jun 2018 08:27:51 -0700 (PDT) Received: from localhost (87-57-30-174-static.dk.customer.tdc.net. [87.57.30.174]) by smtp.gmail.com with ESMTPSA id n84-v6sm1007548lfi.19.2018.06.21.08.27.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Jun 2018 08:27:50 -0700 (PDT) From: Esben Haabendal To: "Gustavo A. R. Silva" Cc: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] spi: spi-fsl-dspi: Fix copy-paste error in dspi_probe References: <20180621132209.GA27215@embeddedor.com> Date: Thu, 21 Jun 2018 17:27:49 +0200 In-Reply-To: <20180621132209.GA27215@embeddedor.com> (Gustavo A. R. Silva's message of "Thu, 21 Jun 2018 08:22:09 -0500") Message-ID: <878t78i2h6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Gustavo A. R. Silva" writes: > It seems that the proper structure field to use in this particular > case is *regmap_pushr* instead of regmap. > > Addresses-Coverity-ID: 1470126 ("Copy-paste error") > Fixes: 58ba07ec79e6 ("spi: spi-fsl-dspi: Add support for XSPI mode registers") > Signed-off-by: Gustavo A. R. Silva > --- > drivers/spi/spi-fsl-dspi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c > index 1f85dcd..ff7456b 100644 > --- a/drivers/spi/spi-fsl-dspi.c > +++ b/drivers/spi/spi-fsl-dspi.c > @@ -1066,7 +1066,7 @@ static int dspi_probe(struct platform_device *pdev) > dev_err(&pdev->dev, > "failed to init pushr regmap: %ld\n", > PTR_ERR(dspi->regmap_pushr)); > - ret = PTR_ERR(dspi->regmap); > + ret = PTR_ERR(dspi->regmap_pushr); > goto out_master_put; > } > } Acked-by: Esben Haabendal