From mboxrd@z Thu Jan 1 00:00:00 1970 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 449E7C433F5 for ; Tue, 19 Apr 2022 15:19:55 +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:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X+k1SBdXd7On0ptixfLr5M6tRvpPZ8J9ZGLEFr2ahgg=; b=YtBti5YVGTO738 AbF5PRsLaoIJT7NmMErJA4305bQGLPm4VvX+LJ7POs2xySnQLivfBXMsbxewPOeILJaZ2n2Y3I4H/ D7AlkwxBfgi0ulWidik5P6HEKybcJaPC/FCouH4eBeTdXbQA7KpnhWadMmAUsNDbjeHJtW4hoarqb hnInwTpvYV2OpAE61cA1y9SavzAs38KWOhizRF1nlFDTQD8zTdhW6oxsuQeXA8mhb4B69HJhaJLNh HTWhqziI81J1Aivv1OANKfHFzH441LUNtdSI/ICKvRbtvwTltlHhjEwcFFkHljaPeexhRzdzF8Jr3 NaAQKcbhe8IMuIKTb3jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngpbX-004aMG-2S; Tue, 19 Apr 2022 15:17:23 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngoqv-004H0T-Rs for linux-arm-kernel@lists.infradead.org; Tue, 19 Apr 2022 14:29:17 +0000 Received: by mail-ej1-x62e.google.com with SMTP id k23so33314969ejd.3 for ; Tue, 19 Apr 2022 07:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Ynz+wXsaKci/uCPa0T2egAwOljY4OEI2Not830eyYso=; b=GlWac5GHq4bFI2oMKXg1MyPfzXSaMwipfkARfjnZ5YqX1HUSIyuw+Y4MTxwtW6Wo6y Lkuot2RbGwKK46iIxOBVUhx5fhUMVAKtxeAv4JRC+F2+VLuyBRGJGhUL+5OfjacMArPp kZiNr7sdyXvNbaVwS3ghptVeG6X4LJXm/64uwgH2S+GNSoBsq7vJLF/eUCAF26JRtNTP JXPHmcOy2X4E8UuGq0w9l1VogtqMBtEvDdjEvRcJ569QjhstCXoCTcstSUqCFyzTC682 8cuopAxbp6V2apVkZliSdCoKkKL5Br9XG/SdZ6gReLbhl3tBVuEmHi6SmQ4n2mAXCVwZ B1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ynz+wXsaKci/uCPa0T2egAwOljY4OEI2Not830eyYso=; b=2DXUpQppaLvgPp+l98ZwQwBrcgk3cjv/issnKryjxf9wHWU8UPQupSmvx6MGvIs1k1 Lz/wst5xnUle2nbTRpwTqC0AVtGINpWLOjyhrJuRqtxsHqAyHMu+lZnCnu2YhD1rxBDH 2wBkdySdiuOlrdsHtxUrUqz8Gi1sPgElRpNe2j+zgx6TO1aGkxTPvNj3uxnXjz228UAX gArWc14VoDk5/UXUZAf8TJHeYysU870qM6ShD32FfCBMadeHT+XpHt+cqleBZFK1dXL6 4gpIsiwdmRf2bjfFCql6B3mGQlwOAj1TrmktNc0brK0CX86aGKhv2GfSbZSmGdLHQUIz efUg== X-Gm-Message-State: AOAM530quySpyJA+uGQMIR9vuPTcnpgmaF4TXiLOAvjjAd4P95PrQntd C3EmtQr80egvDM47ps4iWcsDTQ== X-Google-Smtp-Source: ABdhPJyAwjk70JTjJB+moeKuDW1E4dkWfB+u4jhaJ0VsVEhrDbhVshcuFYPOkdMHO3UzR71ZTSm85w== X-Received: by 2002:a17:906:d10c:b0:6cd:4aa2:cd62 with SMTP id b12-20020a170906d10c00b006cd4aa2cd62mr13605827ejz.229.1650378551397; Tue, 19 Apr 2022 07:29:11 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id u10-20020a170906b10a00b006e1004406easm5761884ejy.93.2022.04.19.07.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 07:29:10 -0700 (PDT) From: Krzysztof Kozlowski To: Markus Mayer , Broadcom Kernel Team , Krzysztof Kozlowski , Florian Fainelli , Santosh Shilimkar , Thierry Reding , Jonathan Hunter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 4/7] memory: ti-emif-pm: simplify platform_get_resource() Date: Tue, 19 Apr 2022 16:28:56 +0200 Message-Id: <20220419142859.380566-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220419142859.380566-1-krzysztof.kozlowski@linaro.org> References: <20220419142859.380566-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_072914_046143_562C47F3 X-CRM114-Status: GOOD ( 12.97 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use devm_platform_get_and_ioremap_resource() instead of platform_get_resource() and devm_ioremap_resource(). Signed-off-by: Krzysztof Kozlowski --- drivers/memory/ti-emif-pm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/memory/ti-emif-pm.c b/drivers/memory/ti-emif-pm.c index 179fec2da56d..31d6266f008c 100644 --- a/drivers/memory/ti-emif-pm.c +++ b/drivers/memory/ti-emif-pm.c @@ -290,9 +290,9 @@ static int ti_emif_probe(struct platform_device *pdev) emif_data->pm_data.ti_emif_sram_config = (unsigned long)match->data; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - emif_data->pm_data.ti_emif_base_addr_virt = devm_ioremap_resource(dev, - res); + emif_data->pm_data.ti_emif_base_addr_virt = devm_platform_get_and_ioremap_resource(pdev, + 0, + &res); if (IS_ERR(emif_data->pm_data.ti_emif_base_addr_virt)) { ret = PTR_ERR(emif_data->pm_data.ti_emif_base_addr_virt); return ret; -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel