Browse Source

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>
Wei Yongjun 12 years ago
parent
commit
e5f5e380e0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/ethernet/freescale/gianfar_ptp.c

+ 1 - 0
drivers/net/ethernet/freescale/gianfar_ptp.c

@@ -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: