diff options
| author | 2024-08-08 11:47:32 +0200 | |
|---|---|---|
| committer | 2024-08-11 17:00:33 +0100 | |
| commit | e81d00a6b3b7d619060223d0754ca02e7d4ba90f (patch) | |
| tree | f53d1479022a393915617a1e1a8808149d5d5174 /scripts/Makefile.thinlto | |
| parent | Merge branch 'bnxt_en-fix-queue-reset-when-queue-active' (diff) | |
net: mvpp2: use port_count to remove ports
As discussed in [1], there is no need to iterate over child nodes to
remove the list of ports. Instead, a loop up to `port_count` ports can
be used, and is in fact more reliable in case the child node
availability changes.
The suggested approach removes the need for the `fwnode` and
`port_fwnode` variables in mvpp2_remove() as well.
Link: https://lore.kernel.org/all/ZqdRgDkK1PzoI2Pf@shell.armlinux.org.uk/ [1]
Suggested-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
