ptp_pch: fix error handling in pch_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 22 May 2013 23:59:28 +0000 (23:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 May 2013 04:24:15 +0000 (21:24 -0700)
commit0d8c3e77e7fba8c84c871b43f35029daa92acc17
tree4a7fa6d1716198258aeea3456917c9ac0444e14c
parent4d2593cc65fa15f2a36313aa8d03a0937226ad49
ptp_pch: fix error handling in pch_probe()

Fix to release resources when ptp_clock_register() fail instead
of return error code directly.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_pch.c