fsl/fman: check of_get_phy_mode() return value
authorMadalin Bucur <madalin.bucur@nxp.com>
Thu, 30 Jun 2016 13:48:05 +0000 (16:48 +0300)
committerMadalin Bucur <madalin.bucur@nxp.com>
Tue, 4 Oct 2016 06:26:09 +0000 (09:26 +0300)
commit604104fc549a32ae928435a48de6761af13836ea
treed5afcb8349ff2fa9488a49b80c8d13a0672ee703
parent47256192c65b786ea9dbebf47f45b938a02e3914
fsl/fman: check of_get_phy_mode() return value

For unknown compatibles avoid crashing and default to SGMII.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
drivers/net/ethernet/freescale/fman/mac.c