From patchwork Sun Oct 4 09:45:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 11815571 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 910A9139A for ; Sun, 4 Oct 2020 09:48:11 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 60EBF2065D for ; Sun, 4 Oct 2020 09:48:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1oWq2Cr+"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="b5rjprCs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 60EBF2065D Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=jZ44RL/igYYd0QVoKFdSMlmUuLi1BDggwidJ8kAMXUs=; b=1oWq2Cr+Jq/ci1d8Or/dHKxyuh zmEgNMGDcpYVvSQVnnSOxus5LqIG1SA5Od70EwOvJ0sS8alL2pI0NxOisXDpxSjPtIDWOkQRUWnt1 h4Uo4EJJk+NgykfpahmafdffQhtrMTBpku305dTM4N/B1XuAL2553h2Y3IAr3lPRlFxn+9gGOKMnK gMbot3vaoSuxYau0rF8uQXDdceBCwL6RFvobvobZw4vDf6EWKh1DxcBtLAaNBsiVAbeVUYWNJSlE3 DDIlFckboIrib6gD12SBZ03Sq9cywWvvocAgRL1RD/vxHrxlEyLcvujZepVpX8jvLexGWnTGS1Abk bj+vEFbQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kP0ar-00049J-IB; Sun, 04 Oct 2020 09:46:13 +0000 Received: from esa3.microchip.iphmx.com ([68.232.153.233]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kP0am-00048w-Tb for linux-arm-kernel@lists.infradead.org; Sun, 04 Oct 2020 09:46:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1601804768; x=1633340768; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=m8Hd3NJVgy0pMuGVmMZDY1WUDPw0wzQS5u6ANWw3p6k=; b=b5rjprCszWiIlyxoZhWxh7uQLoA98qWMcKwaNFXDdvRYGp7j+M+KzhVV Om1ZoF7LCdA1UNm0wCyfM7ClZtW+qQMu64izGChOIfhG+dR8mKifo/LJM blTDBi4kU+hE3mW+/bHWU7jyksXvJFWQIj9Fmals3aAfAteZhNCkx5YLE 5lLXxz8vY5KMiIDG5gpCXAMSUJJaIKPIUGB5DrB+xB6XTdcm55c2s2lwE umWTHXh98VtP6Rbuo+k+aWNGJQjHuc8z0RnVfPYNnP+Za7bDIyjE1RpFA WevtcYTaWiTJsS595k+c7SlVG+nLY0KHxKWyaOZd+tXfUev0n3I3oWbEt g==; IronPort-SDR: Ik2gpo+OGZphdE0IP9Co0VaoMz8ulnXnpmzAm9+wH5hpWmcXkJJyW+NWj3YvbmAGVQ+NMWEapY oH+hp9+t6dBgRySAyhT4ujFmPxr5w3dSxj/GaixHcZ0xp8otntx1CoDVoJSZwMKTHNT58koK0V Zc23IMQpjoapQvKEl8bNqr7Iuwg/UjHn/uhEdIFh+FYfhVS8Y84c0I+T9znAHubKFTC9D5m9Ts 5FzWQ8Mtaw/sBuZbJG1hBWpdl7K8JPAuQ3HXagH487ynDV+EAc/avw7zoTAbTtOaXBIaj47LQ/ nOQ= X-IronPort-AV: E=Sophos;i="5.77,335,1596524400"; d="scan'208";a="94131250" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Oct 2020 02:46:06 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Sun, 4 Oct 2020 02:46:05 -0700 Received: from rob-ult-m19940.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Sun, 4 Oct 2020 02:45:40 -0700 From: Codrin Ciubotariu To: , , Subject: [PATCH] ASoC: mchp-spdifrx: convert to devm_platform_get_and_ioremap_resource Date: Sun, 4 Oct 2020 12:45:05 +0300 Message-ID: <20201004094505.1041898-1-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201004_054609_096488_3F528AAD X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.153.233 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [68.232.153.233 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, lgirdwood@gmail.com, tiwai@suse.com, ludovic.desroches@microchip.com, broonie@kernel.org, Codrin Ciubotariu , perex@perex.cz Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Use the helper function that wraps the calls to platform_get_resource() and devm_ioremap_resource() together. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-spdifrx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c index 6776d89d56df..726e4951d9a5 100644 --- a/sound/soc/atmel/mchp-spdifrx.c +++ b/sound/soc/atmel/mchp-spdifrx.c @@ -873,8 +873,7 @@ static int mchp_spdifrx_probe(struct platform_device *pdev) return -ENOMEM; /* Map I/O registers. */ - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, mem); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem); if (IS_ERR(base)) return PTR_ERR(base);