Re: [PATCH v2] net: lpc_eth: Check clk_prepare_enable() error

2016-08-23 Thread Vladimir Zapolskiy
Hi Fabio, On 23.08.2016 13:38, Fabio Estevam wrote: > From: Fabio Estevam > > clk_prepare_enable() may fail, so we should better check its return > value and propagate it in the case of failure > > While at it, replace __lpc_eth_clock_enable() with a plain > clk_prepare_enable/clk_disable_unpre

[PATCH v2] net: lpc_eth: Check clk_prepare_enable() error

2016-08-23 Thread Fabio Estevam
From: Fabio Estevam clk_prepare_enable() may fail, so we should better check its return value and propagate it in the case of failure While at it, replace __lpc_eth_clock_enable() with a plain clk_prepare_enable/clk_disable_unprepare() call in order to simplify the code. Signed-off-by: Fabio Es