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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E0ADC433EF for ; Tue, 19 Apr 2022 14:29:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353356AbiDSOcA (ORCPT ); Tue, 19 Apr 2022 10:32:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353369AbiDSOb5 (ORCPT ); Tue, 19 Apr 2022 10:31:57 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FBB37A93 for ; Tue, 19 Apr 2022 07:29:10 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id t11so33270873eju.13 for ; Tue, 19 Apr 2022 07:29:10 -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=2N/Ro8Ws00N9zI662d9l1Uiu28krkVVTLr3w9xUy4LE=; b=VkTpfjX53d6k+MKXNZ17GJFxNNwjHIX4otStVY0qaCFky7SWV1jEP88NkSV8z/b6JD uqXMYrjDPk4TsAP/Ld/W5wvHtr8h+7TCqJKHgPGSQVlyCGoWMKY53pOqQa2/eFCukxsQ BKx+rHKl+tgySR/zzxG7/r74pN0hzK7Ky+/AVF2ayxGtmjHH6av1GsceyY4Dwh5j3eBy /Xkb2fQFklMm65GUMwi0vwl+fI1cK8gVIuplHiT9GuZT31rMHm8Is0ERKMoKs21nZo9F FQxG3+zfj+WfVHpN4tiYjCR3R8NZ9pL8va6rRyKB22gMFXMCV2FXqu+zlwfUl3yxdSfC q9xA== 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=2N/Ro8Ws00N9zI662d9l1Uiu28krkVVTLr3w9xUy4LE=; b=MrrUBgKQx/RWYTM2shUF73miJ/E55/AAAEYAZrXU/vFK8t/xtKX51i1Rn47Hdc/smP s92b8Rz0SjHDby+3ISmQrKf4nMLbaoIs3xSlZPC7GQAQT48zJFsIvT4cgfMlZg6GEdd5 xIfxxR4Qeu69xP0qcXJP5q7Uw2XL5cSmsPkqyLXycQNKjeABGofZwG/sc33hu5HQOPb4 7fSEETWtSHibZSNHLIH6BXhRcc6L5M8L4k5rmy44bleywokGoBydeMD89VV7hES3OrRd TKp/rYhSiUb701NxJJbUsrdhKDeUnmQLiprKPKP6C8CJOfT8M1I76+T8A3UbQvPt5Rxi W94Q== X-Gm-Message-State: AOAM531UR0uN0Uc4/dlbHuR0HDaq6tYQCxtftFNsHcypTr34XmaWwSWr pEN8OTssuhyCilKRdhD8lq70ng== X-Google-Smtp-Source: ABdhPJzotgX/HM13ib5WFyPurhgxFPdKifNZn2lb6iKuv5tvbGiSnyjrNsCjIf+iBtLGEWtPehJYtw== X-Received: by 2002:a17:906:99c5:b0:6df:8215:4ccd with SMTP id s5-20020a17090699c500b006df82154ccdmr13791540ejn.684.1650378549067; Tue, 19 Apr 2022 07:29:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 07:29:08 -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 2/7] memory: emif: simplify platform_get_resource() Date: Tue, 19 Apr 2022 16:28:54 +0200 Message-Id: <20220419142859.380566-2-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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Use devm_platform_ioremap_resource() instead of platform_get_resource() and devm_ioremap_resource(). Signed-off-by: Krzysztof Kozlowski --- drivers/memory/emif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index edf3ba7447ed..6c2a421b86e3 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c @@ -1107,7 +1107,6 @@ static struct emif_data *__init_or_module get_device_details( static int __init_or_module emif_probe(struct platform_device *pdev) { struct emif_data *emif; - struct resource *res; int irq, ret; if (pdev->dev.of_node) @@ -1126,8 +1125,7 @@ static int __init_or_module emif_probe(struct platform_device *pdev) emif->dev = &pdev->dev; platform_set_drvdata(pdev, emif); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - emif->base = devm_ioremap_resource(emif->dev, res); + emif->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(emif->base)) goto error; -- 2.32.0 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 E0F0BC433EF for ; Tue, 19 Apr 2022 15:16: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: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=/m4fX9wT6v/17ef8TaSRARNOJiNnwA521XTztJcMo+U=; b=m3EhC03ypAa7hy B0mFlfT8mfJOgQrmBwsSLVhWFlxmAjE994Vhvot0C6W4hPyb51HCF1sYaPZ57DmJ/YRZhs6Dz5il6 1c2LaCGyfhYjxth/6EG3/QnT6sLjjDYXqVDh46Tr3uGiJGacWFVUUjdKTDzLLKX6XgFjodwLHRXy+ 752X2+6fPpCrnG9TmNUp4sEkwOijqsj5LXCo8EAuBqAMDZxLJ38kEDH7qWkgC/4ZLBDmVLscmxifU 9YtApMqWKwZ/pup6d5vjHhyznW1tpJGgrfcHy3snd6G9Hcq7I+RdoP++ZbIrRVHDpHnW3JCEMBdii rRZyobbi6NOiImrQ6oOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngpZF-004ZUo-He; Tue, 19 Apr 2022 15:15:02 +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-004Gys-RM for linux-arm-kernel@lists.infradead.org; Tue, 19 Apr 2022 14:29:15 +0000 Received: by mail-ej1-x62e.google.com with SMTP id lc2so33263706ejb.12 for ; Tue, 19 Apr 2022 07:29:10 -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=2N/Ro8Ws00N9zI662d9l1Uiu28krkVVTLr3w9xUy4LE=; b=VkTpfjX53d6k+MKXNZ17GJFxNNwjHIX4otStVY0qaCFky7SWV1jEP88NkSV8z/b6JD uqXMYrjDPk4TsAP/Ld/W5wvHtr8h+7TCqJKHgPGSQVlyCGoWMKY53pOqQa2/eFCukxsQ BKx+rHKl+tgySR/zzxG7/r74pN0hzK7Ky+/AVF2ayxGtmjHH6av1GsceyY4Dwh5j3eBy /Xkb2fQFklMm65GUMwi0vwl+fI1cK8gVIuplHiT9GuZT31rMHm8Is0ERKMoKs21nZo9F FQxG3+zfj+WfVHpN4tiYjCR3R8NZ9pL8va6rRyKB22gMFXMCV2FXqu+zlwfUl3yxdSfC q9xA== 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=2N/Ro8Ws00N9zI662d9l1Uiu28krkVVTLr3w9xUy4LE=; b=JPc6NMrapvUaEQSqZ/lIsE09ZtLDgM1eCgYlQS+sNNaR7Pxbh9sGP7BK5FTZ4tmml5 9vx6rgFY2h8+CY8mrtH2iTAccYYFRk+rOGqmCF/7wC7SipdIRHHR+ZSjdTGFuf0PUoFu fCf51oKCEBsAY01AdR2ADERTXkVziwipkyuKmV2tjw4ObTf4qomYK0812kS0PBTuskWG nORLDmfciUycu70xv8/ihi4O90TQiNbI4oUaHF1RAuCCFfvQm5EP8QfBaMlykkMs/BLH n2Nan/PPtb2e1SFUfQpS5O9X3NGbQB0VxZBTjXa83NMQ8Bu+WNh+PCv0lrbQLMgOMpjl JrnQ== X-Gm-Message-State: AOAM530pB/omrDI8qq8RUGucEG5AcgM6lXsXHmkK2lD5OJ6OvhsCKes8 uWgdkPswwgOWp2/QLnFJsH10TA== X-Google-Smtp-Source: ABdhPJzotgX/HM13ib5WFyPurhgxFPdKifNZn2lb6iKuv5tvbGiSnyjrNsCjIf+iBtLGEWtPehJYtw== X-Received: by 2002:a17:906:99c5:b0:6df:8215:4ccd with SMTP id s5-20020a17090699c500b006df82154ccdmr13791540ejn.684.1650378549067; Tue, 19 Apr 2022 07:29:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 07:29:08 -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 2/7] memory: emif: simplify platform_get_resource() Date: Tue, 19 Apr 2022 16:28:54 +0200 Message-Id: <20220419142859.380566-2-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_072913_941129_A549A11D X-CRM114-Status: GOOD ( 11.64 ) 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_ioremap_resource() instead of platform_get_resource() and devm_ioremap_resource(). Signed-off-by: Krzysztof Kozlowski --- drivers/memory/emif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index edf3ba7447ed..6c2a421b86e3 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c @@ -1107,7 +1107,6 @@ static struct emif_data *__init_or_module get_device_details( static int __init_or_module emif_probe(struct platform_device *pdev) { struct emif_data *emif; - struct resource *res; int irq, ret; if (pdev->dev.of_node) @@ -1126,8 +1125,7 @@ static int __init_or_module emif_probe(struct platform_device *pdev) emif->dev = &pdev->dev; platform_set_drvdata(pdev, emif); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - emif->base = devm_ioremap_resource(emif->dev, res); + emif->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(emif->base)) goto error; -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel