Re: [PATCH v2] phy: marvell: Fix and unify reg-init behavior
From: Fabio Estevam
Date: Mon Feb 15 2016 - 15:54:34 EST
On Mon, Feb 15, 2016 at 6:01 PM, Clemens Gruber
<clemens.gruber@xxxxxxxxxxxx> wrote:
> +static int marvell_config_init(struct phy_device *phydev)
> +{
> + int err;
> +
> + /* Set registers from marvell,reg-init DT property */
> + err = marvell_of_reg_init(phydev);
> + if (err < 0)
> + return err;
> +
> + return 0;
> }
Couldn't this be replaced by
return marvell_of_reg_init(phydev); ?