diff options
author | Vladimir Oltean <[email protected]> | 2020-09-18 04:07:28 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-09-18 13:52:34 -0700 |
commit | 7c411799e1b3e0efa3a50e44e98cce6a771441c6 (patch) | |
tree | be5d9574c353efb417ab9488d687d0a996b38843 /lib/mpi/mpiutil.c | |
parent | d1cc0e932039cc40357baf037ab403d1d2e228fd (diff) |
net: mscc: ocelot: refactor ports parsing code into a dedicated function
mscc_ocelot_probe() is already pretty large and hard to follow. So move
the code for parsing ports in a separate function.
This makes it easier for the next patch to just call
mscc_ocelot_release_ports from the error path of mscc_ocelot_init_ports.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Horatiu Vultur <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Tested-by: Alexandre Belloni <[email protected]>
Reviewed-by: Alexandre Belloni <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions