]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: octeon: check for pow0 before calling interface helper
authorAaro Koskinen <aaro.koskinen@nokia.com>
Wed, 29 Jun 2016 12:20:45 +0000 (15:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:02:32 +0000 (18:02 +0200)
commit9eca4993dcfa17d21f28fae773c21b04d47b117d
tree290888b851f2812958b25688a9ad6ad145867142
parent0ad1ed99d6ce86bc76b8768a49a65155281aad44
staging: octeon: check for pow0 before calling interface helper

Check for pow0 port first before calling the interface helper. This
avoids the following error log when setting up pow0 interface:

cvmx_helper_get_interface_num: Illegal IPD port number

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-util.h