From patchwork Mon Oct 17 17:12:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13009056 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77A03C433FE for ; Mon, 17 Oct 2022 17:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=r0c/0pj3J9vSvwGiYQARFQDemLX2rWg+hGcXO+vJZHk=; b=Mbu+oXbQWtNqsE YWQIBudeJuSm1fSHFHd8wA3Nf5wOqI4PZyVCpUx8i7MD+mmVwxo/fogMCXeG4ztt8n1Y8oVskw92E 14nUx/oPnkc4ao3NctIM4Td5CLBFnbRrz58J3+cNu+9wrFuSpeq87rNfwhEo1nFdm5g3M4TZ2s6Vg zxlefr0VV8RH/5hq6Z7CHvsz0IPPaSTtZ8p0V0o9WsIzDIvHc0rButfKcKL9rC/KO9qCd+Z5fBZAf a/cxz5EXN/lpNYrgFhnYEYmgNF4ej2x9B+7JHewgtoc9qboNxotg8g1dHKme50KhXsi/yfCyuggNC 1zhhi2I+4A+zS24m5gEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okTfH-00Duso-Ut; Mon, 17 Oct 2022 17:12:36 +0000 Received: from mga18.intel.com ([134.134.136.126]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okTfD-00Duqn-KH for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 17:12:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666026751; x=1697562751; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=eEL0Wkgz2QTB6hPhPIAefByf4yM70/tBp3XIDpf3g4Y=; b=Xy4ATdYUMy00XNZcgonZAadFESLKoUMxT74Z1o6hKuEAnpcRiLaNFDOZ Ngn7lp8CP/KqHox8CHvV0yWqLVQz/WivhBmWuGj9s2CT2V3yE81HQ31MX vSy0SIpvHTfxojuf+LENszJGN+5EyFO9LmKHR4A9UW3L/611LRq/mJOhu erM+eIM1PCktcM1zHC2+qLhCYu4v+uzdmIEqMaXT1qQtgrdNaBH6zphvB GYhQ8RD1HSnlRsvbBATbXwe6YW6S/bpkalPpk7Ll7JDYeFuMCqWY6OLH0 i1yrBSm9zFCIMeiM2QxDuH6ZrhAHhPnnKDiarNEpmHrUj9dg74ORmXxy8 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="289156548" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="289156548" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 10:12:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="733239970" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="733239970" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 17 Oct 2022 10:12:26 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6542426D; Mon, 17 Oct 2022 20:12:47 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown Subject: [PATCH v1 1/6] spi: pxa2xx: Simplify with devm_platform_get_and_ioremap_resource() Date: Mon, 17 Oct 2022 20:12:38 +0300 Message-Id: <20221017171243.57078-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221017_101231_789610_81A591FA X-CRM114-Status: GOOD ( 12.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. No functional changes. Signed-off-by: Andy Shevchenko --- drivers/spi/spi-pxa2xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 2bf21c2e7a52..03ed6d4a14cd 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1482,8 +1482,7 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev) ssp = &pdata->ssp; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ssp->mmio_base = devm_ioremap_resource(&pdev->dev, res); + ssp->mmio_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(ssp->mmio_base)) return ERR_CAST(ssp->mmio_base);