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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7ffc37fc35
commit
e5f5e380e0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue