Re: [PATCH] net: sun4i-emac: Properly free resources on probe failure and remove

2015-09-24 Thread Maxime Ripard
On Wed, Sep 23, 2015 at 11:39:16AM +0200, Hans de Goede wrote: > Fix sun4i-emac not releasing the following resources: > -iomapped memory not released on probe-failure nor on remove > -clock not getting disabled on probe-failure nor on remove > -sram not being released on remove > > And while at

[PATCH] net: sun4i-emac: Properly free resources on probe failure and remove

2015-09-23 Thread Hans de Goede
Fix sun4i-emac not releasing the following resources: -iomapped memory not released on probe-failure nor on remove -clock not getting disabled on probe-failure nor on remove -sram not being released on remove And while at it also add error checking to the clk_prepare_enable call done on probe.