Commit 47256192 authored by Madalin Bucur's avatar Madalin Bucur

fsl/fman: check pcsphy pointer before use

Signed-off-by: default avatarMadalin Bucur <madalin.bucur@nxp.com>
parent 44045e45
......@@ -507,6 +507,9 @@ static void setup_sgmii_internal_phy(struct fman_mac *memac,
{
u16 tmp_reg16;
if (WARN_ON(!memac->pcsphy))
return;
/* SGMII mode */
tmp_reg16 = IF_MODE_SGMII_EN;
if (!fixed_link)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment