From patchwork Tue Oct 15 10:42:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 11190019 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F02201668 for ; Tue, 15 Oct 2019 10:43:40 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 074AA20854 for ; Tue, 15 Oct 2019 10:43:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="YdroO06M" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 074AA20854 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lip6.fr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D556184A; Tue, 15 Oct 2019 12:42:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D556184A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1571136217; bh=ow5K1iomWCviTVuydNzphxoPHzB3wsZ5x4OJY9j8Aoc=; h=Date:From:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=YdroO06MjBNfEodCsVHG/lScaYoFzCSn80kUd4CmHxbQQJdxJvxyHT1Izk23ugc7i ikfD06zikvcPiBtedu7SwuTXqY9VC9rDeUClDQO4lO/YNqg/F28BfW00AoBAXwjiD6 3zG/cBhcGA0Mn0b8LnN91UMpu5po2uAnB5mcDd38= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3194DF804A9; Tue, 15 Oct 2019 12:42:47 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 01512F804AA; Tue, 15 Oct 2019 12:42:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=HDRS_LCASE,SPF_HELO_NONE, SPF_NEUTRAL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EA6A6F80323 for ; Tue, 15 Oct 2019 12:42:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EA6A6F80323 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 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Cc: robh@kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, pierre-louis.bossart@linux.intel.com, lgirdwood@gmail.com, vkoul@kernel.org, broonie@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH] soundwire: qcom: fix devm_platform_ioremap_resource.cocci warnings X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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); }