STAGING: Octeon: Use common helpers for determining interface and port
STAGING: Octeon: Use common helpers for determining interface and port

Currently the Octeon Ethernet driver hardcodes the mapping between
interface/port and IPD port number. Since we have generic helpers for
the very same purpose, we might as well use them instead. This prevents
having the same information in multiple places.

Signed-off-by: Janne Huttunen <ecf240c0c94018c9d36f4a5261aae6636a3bb332@nokia.com>
Signed-off-by: Aaro Koskinen <13423a3f3006b5859cfceae66d59451f5eb4e205@nokia.com>
Acked-by: David Daney <eec15f2dea0e7d114bf41a5bde8a2858b8f3e893@cavium.com>
Cc: David Daney <1d8a6ccc3596121ad6db8988061b5cda25ecdfb1@gmail.com>
Cc: 562397917b9a8bf316569a848858b12fb417723f@linux-mips.org
Cc: Janne Huttunen <ecf240c0c94018c9d36f4a5261aae6636a3bb332@nokia.com>
Cc: Aaro Koskinen <13423a3f3006b5859cfceae66d59451f5eb4e205@nokia.com>
Cc: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>
Cc: 21a6cafaf0e9b0080692d699c1538d0dfa42b47a@driverdev.osuosl.org
Patchwork: https://patchwork.linux-mips.org/patch/10975/
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs