Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5762882ybp; Tue, 15 Oct 2019 04:47:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBjweuqwjAq/PuarNSZjfiCiSrqqBrn0KNmIBN+j8FFVlsXQTc2hY/Bfo50rlo5oEdvLic X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr33791217edv.284.1571140036245; Tue, 15 Oct 2019 04:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571140036; cv=none; d=google.com; s=arc-20160816; b=pUsQGWa7oXv5HiyG4S/vm1l4zYOHSRGNj2xmr4YFpEEQzdS5MygF0yVjWL3wdRGN7b oWbsIVwi+YsLzSufSy4Iwwn62hIeVf7PoPNL6JN7hS8VOqolC/iXUNTxMlRsN00B/cQj 19owALPRYxfn1DSvbQb2CvNWc5PGnBldyo4TMJV8sPjLcPjPUwE8mO5OidLTKmo2x7KV vnL2FZoNoIYc0PTb2aqLlhOzoOEq+yCvoKHkXkjcrUjhON/OpSm8DAGIZQQAbYcHQINb jCWRZHgoa/mD3sw3q5Wvdbr8zQdP6Nm36cq5XiZh2RakNxwbF3BrN6H4k2Igxib2rWBy xp7w== 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 :subject:cc:to:from:date; bh=pBMO6NcUSW3rGye5wfqir5JxP/njFFymCEv+UI44iFs=; b=nJrAdV/7gp33mbm77CSq9Vjt0xjjGJvzNohW+W9eiBAvoexF/V7sfCO3Pi5Tk3atD1 zgDXiMauTF1VuU90fdRaYikLc+4WGajJ0+z98FX5tIgsmpeiyENAxSd8sGwzGMJKWuWK BkngvSQKS2TQ28av1UMPhWMYXrV4HFkAbpTPorrnUGYIC6zn/HhfsH/K6bDE4dNi75Y/ I4dEJqRO5BLNZWIqj3778DsT9Z63DXzfsqrorfOc1q3a0iSrRShu/KeVt4wKtqFOomkU kaq7QlmhimVCSUpe1PlI0xjc0ubt/KpudLBZVE0J9pa8xZ2pa4BTVjiOq8wdK6VpvUXo BCBg== 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 y71si13927641ede.135.2019.10.15.04.46.52; Tue, 15 Oct 2019 04:47:16 -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 S1728392AbfJOKmm (ORCPT + 99 others); Tue, 15 Oct 2019 06:42:42 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:23105 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728214AbfJOKml (ORCPT ); Tue, 15 Oct 2019 06:42:41 -0400 X-IronPort-AV: E=Sophos;i="5.67,299,1566856800"; d="scan'208";a="322757380" Received: from portablejulia.rsr.lip6.fr ([132.227.76.63]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 12:42:40 +0200 Date: Tue, 15 Oct 2019 12:42:40 +0200 (CEST) From: Julia Lawall X-X-Sender: julia@hadrien To: Srinivas Kandagatla 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 Subject: [PATCH] soundwire: qcom: fix devm_platform_ioremap_resource.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kbuild test robot 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 Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- 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); }