Commit 498ad3f4 authored by Jonathan Lemon's avatar Jonathan Lemon Committed by David S. Miller
Browse files

ptp: ocp: Parameterize the TOD information display.



Only display the TOD information if there is a corresponding
TOD resource.

Signed-off-by: default avatarJonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1618df6a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -743,6 +743,7 @@ ptp_ocp_info(struct ptp_ocp *bp)
		 ptp_ocp_clock_name_from_val(select >> 16),
		 ptp_clock_index(bp->ptp));

	if (bp->tod)
		ptp_ocp_tod_info(bp);
}