[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3e326797-b4c1-424f-8cf1-f0095e33e0bc@lunn.ch>
Date: Fri, 16 Jan 2026 18:20:05 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Inochi Amaoto <inochiama@...il.com>
Cc: Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Karol Gugala <kgugala@...micro.com>,
Mateusz Holenko <mholenko@...micro.com>,
Gabriel Somlo <gsomlo@...il.com>, Joel Stanley <joel@....id.au>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Yixun Lan <dlan@...too.org>, Longbin Li <looong.bin@...il.com>
Subject: Re: [PATCH net-next] net: ethernet: litex: use
devm_register_netdev() to register netdev
On Fri, Jan 16, 2026 at 08:31:50AM +0800, Inochi Amaoto wrote:
> Use devm_register_netdev to avoid unnecessary remove() callback in
> platform_driver structure.
> - netdev = devm_alloc_etherdev(&pdev->dev, sizeof(*priv));
> + netdev = devm_alloc_etherdev(dev, sizeof(*priv));
> if (!netdev)
> return -ENOMEM;
The commit message does not fit the actual change.
You probably want to split this into multiple patches. Ideally you
want lots of small patches with good commit messages which are
obviously correct.
Andrew
---
pw-bot: cr
Powered by blists - more mailing lists