[PATCHv2] staging: octeon-ethernet: trivial: Avoid OOPS if phydev is not set

2013-10-14 Thread Sebastian Pöhn
Sorry. Haven't signed off for a while now :( I bet that this is really an issue of incorrect OF information. If I find out more I'll let you know. @dan: The code works for some interfaces - so phydev is set correctly in some cases. Signed-off-by: Sebastian Poehn --- diff --git a/drivers/stagi

[PATCH] staging: octeon-ethernet: trivial: Avoid OOPS if phydev is not set

2013-10-13 Thread Sebastian Pöhn
A zero pointer deref on priv->phydev->link was causing oops on our systems. Might be related to improper configuration but we should fail gracefully here ;-) Signed-off-by: Sebastian Poehn --- diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c index 8