Re: [PATCH v4 1/3] net: phy: mscc: move shared probe code into a helper

From: Andrew Lunn
Date: Wed Jun 17 2020 - 21:15:14 EST


On Wed, Jun 17, 2020 at 11:33:24PM +0200, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@xxxxxxxxxxxxxxxxxxxxx>
>
> The different probe functions share a lot of code, so move the
> common parts into a helper to reduce duplication.
>
> This moves the devm_phy_package_join below the general allocation
> but as all components just allocate things, this should be ok.
>
> Suggested-by: Andrew Lunn <andrew@xxxxxxx>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@xxxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew