From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Yangtao Li <frank.li@vivo.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Michal Simek <michal.simek@amd.com>, <netdev@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/4] net: emaclite: Use devm_platform_get_and_ioremap_resource()
Date: Thu, 6 Jul 2023 14:29:22 +0200 [thread overview]
Message-ID: <b3113f37-0e4d-a987-ce3d-56fabdb802c0@intel.com> (raw)
In-Reply-To: <20230706120850.11026-1-frank.li@vivo.com>
From: Yangtao Li <frank.li@vivo.com>
Date: Thu, 6 Jul 2023 20:08:47 +0800
> [PATCH 1/4] net: emaclite: Use devm_platform_get_and_ioremap_resource()
Please clearly specify the target tree (net or net-next) in the subject
prefix. Since your series is cleanups, it should be "PATCH net-next".
> 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.
>
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
> drivers/net/ethernet/xilinx/xilinx_emaclite.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> index ad2c30d9a482..3cba947e4cbd 100644
> --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> @@ -1114,8 +1114,7 @@ static int xemaclite_of_probe(struct platform_device *ofdev)
>
> ndev->irq = rc;
>
> - res = platform_get_resource(ofdev, IORESOURCE_MEM, 0);
> - lp->base_addr = devm_ioremap_resource(&ofdev->dev, res);
> + lp->base_addr = devm_platform_get_and_ioremap_resource(ofdev, 0, &res);
> if (IS_ERR(lp->base_addr)) {
> rc = PTR_ERR(lp->base_addr);
> goto error;
Thanks,
Olek
next prev parent reply other threads:[~2023-07-06 12:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-06 12:08 [PATCH 1/4] net: emaclite: Use devm_platform_get_and_ioremap_resource() Yangtao Li
2023-07-06 12:08 ` [PATCH 2/4] tsnep: " Yangtao Li
2023-07-06 12:08 ` [PATCH 3/4] net: wiznet: " Yangtao Li
2023-07-06 12:08 ` [PATCH 4/4] net: ethernet: broadcom: Convert to devm_platform_ioremap_resource() Yangtao Li
2023-07-06 12:29 ` Alexander Lobakin [this message]
2023-07-06 15:48 ` [PATCH 1/4] net: emaclite: Use devm_platform_get_and_ioremap_resource() Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b3113f37-0e4d-a987-ce3d-56fabdb802c0@intel.com \
--to=aleksander.lobakin@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=frank.li@vivo.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).