Commit e5f5e380 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

gianfar: add missing iounmap() on error in gianfar_ptp_probe()

Add the missing iounmap() before return from gianfar_ptp_probe()
in the error handling case.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7ffc37fc
......@@ -524,6 +524,7 @@ static int gianfar_ptp_probe(struct platform_device *dev)
return 0;
no_clock:
iounmap(etsects->regs);
no_ioremap:
release_resource(etsects->rsrc);
no_resource:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment