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

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
...@@ -743,6 +743,7 @@ ptp_ocp_info(struct ptp_ocp *bp) ...@@ -743,6 +743,7 @@ ptp_ocp_info(struct ptp_ocp *bp)
ptp_ocp_clock_name_from_val(select >> 16), ptp_ocp_clock_name_from_val(select >> 16),
ptp_clock_index(bp->ptp)); ptp_clock_index(bp->ptp));
if (bp->tod)
ptp_ocp_tod_info(bp); ptp_ocp_tod_info(bp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment