From: Andreas Oetken <[email protected]>
Date: Wed, 22 Apr 2015 15:22:22 +0200
> + /* check if a fixed-link is defined in device-tree */
> + if (of_phy_is_fixed_link(priv->device->of_node)) {
> + if (of_phy_register_fixed_link(priv->device->of_node)
> + < 0) {
You should store the return value of of_phy_register_fixed_link() and return
that as the error code when it fails.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html