Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4399502ioa; Wed, 27 Apr 2022 03:02:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY2fgB3awR9nxVEZDgX3zM/CGLbT7FZSq9o0CcgAzS5WKncVXPzOQ+w4x7jeiu0KtMtdtg X-Received: by 2002:a17:902:d714:b0:153:2e9:3bcc with SMTP id w20-20020a170902d71400b0015302e93bccmr28029813ply.83.1651053777766; Wed, 27 Apr 2022 03:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651053777; cv=none; d=google.com; s=arc-20160816; b=xZuosVAhQqycCRQEhPxT2WUjpv8dCt86z6J3WYmFwPDCleQD/XJeIPwAyXOkyoV4iZ 9QUGqmvjoEUNiNkJ8QpeWxKCi7OMimNnHStWNcygFFz6JoFQUwHvMI4REUlzxTqJWxMF MJKi/zH3T+SFR4AAcXXRohSHoZaPP/BMl3muDOJR0d5G1U63Ao4vXXuGLKZu/RGQyzzB 3zC2E4gIgihfKKr0xzsl3wkDsaNPnUGVYRHAmdYOR2rNo+ap9oM3SjlROujZKYrFp0IF ADHgLx4YX2SPBI+SAakhy1vcqbX4xFIO15cNGNDx9RjyLRUBiyTOGV+2Q96P3WWrjYT5 ADmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kqUR0c7kIfOD/vD/YKkVpkdvcyQWCmE0JRAtCDl4Ovs=; b=I0/+Q5Ra5/mUHOalNn3EfJzwHHjYqWPFxNhpOj6h03fnkNkohloV9CW3ZtNQdZfYQI b4VIq558yjrMlb4OHZS78D2HCtKSuaTt+moxf+7eZciFNBGxm4V6PbYV1OQhYBe7PlCS X0GZcTx+anvGPvfoNZc3DxQC7j5esZHzF4VvRu8Nju9hVBIkJ2GHnEC9tbvtOlBim0GT pEqQ/71pi6qoZGpiEIX8QdyVyiOqwduLb6VviEUTgdhOp2cDFk9DY2jaXFlrFghJh/sp NwPjHK9tNuDVyHmcczPcVCJpPzDBZkQB1c7DzWCJ4uZ89PvLf1qCrBjkxfh55SfooH90 D7hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=C8hwhh7u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g17-20020a63fa51000000b003ab20e589b1si998339pgk.404.2022.04.27.03.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:02:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=C8hwhh7u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CE922DE856; Wed, 27 Apr 2022 02:29:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236064AbiDZQ4P (ORCPT + 99 others); Tue, 26 Apr 2022 12:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353604AbiDZQz4 (ORCPT ); Tue, 26 Apr 2022 12:55:56 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AE05427C0 for ; Tue, 26 Apr 2022 09:52:17 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id c1so13650916qkf.13 for ; Tue, 26 Apr 2022 09:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kqUR0c7kIfOD/vD/YKkVpkdvcyQWCmE0JRAtCDl4Ovs=; b=C8hwhh7uEC6m2zOD/nAcUGPqgF3WeHql9lkeJRc6BmxkPieL3Kyc8v4RNJ/vt+iUpN +IgZPwvK7gwiayFEj2jURS6zF080FYWzVTPXDRsSl5OIIhMuckxYGoG2j6euIscZYCye KXkxUy1MgIh++h0q0cQAtPkg4BT/7yNYt4S98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kqUR0c7kIfOD/vD/YKkVpkdvcyQWCmE0JRAtCDl4Ovs=; b=o+FZ26r/ghH7SVyUNELeAmn5T83conI8wBIG/9WSI7EvXvuyylL6sX7q/9sO50Jb/q /ubSd3Oi/0QGWDnL7updxWpMXgp8jLqsU6M7xwkQBBp6qhO+vHRrExTmcsSuG/MfkrPa rY8agIIPZMuW8AvxH3zzADH3AJVqiHcz70yNCp85UqY5pE/zz9sWgqqaD22bl7ealGF3 2hDPz5YxQ/5x5Rl4o9PbhMBZi5fT9k8p82o3PIkJwvqBmdS9Avva1lEJs+NoD8e8YGSQ jvCaRpvzwvrxVLGzZSF13x2MNGVVnBxTF6+kh0wwzwoX/HpWB14CtcaQ9d5qVFZa3pMT K0eA== X-Gm-Message-State: AOAM532oAMITWwhETt6bKpdk0fFpkBHiXHIhrGbIaEeFvfxez7f0x0m7 nZFKz1UG/SWR/rIKy9q88vrUIWa7+lsJMiBzuK9Nxw== X-Received: by 2002:a37:b4d:0:b0:69f:7742:9778 with SMTP id 74-20020a370b4d000000b0069f77429778mr2486350qkl.109.1650991936058; Tue, 26 Apr 2022 09:52:16 -0700 (PDT) MIME-Version: 1.0 References: <20220419142859.380566-1-krzysztof.kozlowski@linaro.org> <20220419142859.380566-6-krzysztof.kozlowski@linaro.org> In-Reply-To: <20220419142859.380566-6-krzysztof.kozlowski@linaro.org> From: Markus Mayer Date: Tue, 26 Apr 2022 09:52:05 -0700 Message-ID: Subject: Re: [PATCH 6/7] memory: brcmstb_dpfe: simplify platform_get_resource_byname() To: Krzysztof Kozlowski Cc: Broadcom Kernel Team , Florian Fainelli , Santosh Shilimkar , Thierry Reding , Jonathan Hunter , Linux ARM Kernel , Linux Kernel , linux-tegra@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Apr 2022 at 07:29, Krzysztof Kozlowski wrote: > > Use devm_platform_ioremap_resource_byname() instead of > platform_get_resource_byname() and devm_ioremap_resource(). > > Signed-off-by: Krzysztof Kozlowski Thanks for the change. Acked-by: Markus Mayer Regards, -Markus > --- > drivers/memory/brcmstb_dpfe.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c > index 14412002775d..76c82e9c8fce 100644 > --- a/drivers/memory/brcmstb_dpfe.c > +++ b/drivers/memory/brcmstb_dpfe.c > @@ -857,7 +857,6 @@ static int brcmstb_dpfe_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > struct brcmstb_dpfe_priv *priv; > - struct resource *res; > int ret; > > priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > @@ -869,22 +868,19 @@ static int brcmstb_dpfe_probe(struct platform_device *pdev) > mutex_init(&priv->lock); > platform_set_drvdata(pdev, priv); > > - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-cpu"); > - priv->regs = devm_ioremap_resource(dev, res); > + priv->regs = devm_platform_ioremap_resource_byname(pdev, "dpfe-cpu"); > if (IS_ERR(priv->regs)) { > dev_err(dev, "couldn't map DCPU registers\n"); > return -ENODEV; > } > > - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-dmem"); > - priv->dmem = devm_ioremap_resource(dev, res); > + priv->dmem = devm_platform_ioremap_resource_byname(pdev, "dpfe-dmem"); > if (IS_ERR(priv->dmem)) { > dev_err(dev, "Couldn't map DCPU data memory\n"); > return -ENOENT; > } > > - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-imem"); > - priv->imem = devm_ioremap_resource(dev, res); > + priv->imem = devm_platform_ioremap_resource_byname(pdev, "dpfe-imem"); > if (IS_ERR(priv->imem)) { > dev_err(dev, "Couldn't map DCPU instruction memory\n"); > return -ENOENT; > -- > 2.32.0 >