diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-10-20 10:42:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-21 19:47:45 -0700 |
commit | 104eb270e665f4fcd8cb8c8ab4c4d4538c604e92 (patch) | |
tree | 14d46ad4b54ace2e94fd27be1cb49e30ce15a26e /drivers/tty | |
parent | e754ec69ab69601420eb2ed58ece803d77c93f61 (diff) | |
download | linux-104eb270e665f4fcd8cb8c8ab4c4d4538c604e92.tar.bz2 |
net: sun4i-emac: Properly free resources on probe failure and remove
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.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/tty')
0 files changed, 0 insertions, 0 deletions