stmmac: fix error check when init ptp