diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-08-08 12:47:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-11 19:00:33 +0300 |
commit | e81d00a6b3b7d619060223d0754ca02e7d4ba90f (patch) | |
tree | f53d1479022a393915617a1e1a8808149d5d5174 /include/linux/fpga/fpga-mgr.h | |
parent | 80d021bc572fbf1b59b029672df5be069dd078ae (diff) | |
download | linux-e81d00a6b3b7d619060223d0754ca02e7d4ba90f.tar.xz |
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 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions