mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: robh@kernel.org, vkoul@kernel.org, broonie@kernel.org,
	bgoswami@codeaurora.org, pierre-louis.bossart@linux.intel.com,
	devicetree@vger.kernel.org, lgirdwood@gmail.com,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	spapothi@codeaurora.org,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: [PATCH] soundwire: qcom: fix devm_platform_ioremap_resource.cocci warnings
Date: Tue, 15 Oct 2019 12:42:40 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.1910151241460.2818@hadrien> (raw)

From: kbuild test robot <lkp@intel.com>

 Use devm_platform_ioremap_resource helper which wraps
 platform_get_resource() and devm_ioremap_resource() together.

Generated by: scripts/coccinelle/api/devm_platform_ioremap_resource.cocci

Fixes: 4a789cff1848 ("soundwire: qcom: add support for SoundWire controller")
CC: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---

url:    https://github.com/0day-ci/linux/commits/Srinivas-Kandagatla/soundwire-Add-support-to-Qualcomm-SoundWire-master/20191014-063507
:::::: branch date: 9 hours ago
:::::: commit date: 9 hours ago

 qcom.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/drivers/soundwire/qcom.c
+++ b/drivers/soundwire/qcom.c
@@ -784,7 +784,6 @@ static int qcom_swrm_probe(struct platfo
 	struct sdw_master_prop *prop;
 	struct sdw_bus_params *params;
 	struct qcom_swrm_ctrl *ctrl;
-	struct resource *res;
 	int ret;
 	u32 val;

@@ -801,8 +800,7 @@ static int qcom_swrm_probe(struct platfo
 	} else {
 		ctrl->reg_read = qcom_swrm_mmio_reg_read;
 		ctrl->reg_write = qcom_swrm_mmio_reg_write;
-		res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-		ctrl->base = devm_ioremap_resource(dev, res);
+		ctrl->base = devm_platform_ioremap_resource(pdev, 0);
 		if (IS_ERR(ctrl->base))
 			return PTR_ERR(ctrl->base);
 	}

                 reply	other threads:[~2019-10-15 10:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.21.1910151241460.2818@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=alsa-devel@alsa-project.org \
    --cc=bgoswami@codeaurora.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=robh@kernel.org \
    --cc=spapothi@codeaurora.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®