mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
ptp: ocp: Parameterize the TOD information display.
Only display the TOD information if there is a corresponding TOD resource. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1618df6afa
commit
498ad3f438
1 changed files with 2 additions and 1 deletions
|
@ -743,7 +743,8 @@ ptp_ocp_info(struct ptp_ocp *bp)
|
|||
ptp_ocp_clock_name_from_val(select >> 16),
|
||||
ptp_clock_index(bp->ptp));
|
||||
|
||||
ptp_ocp_tod_info(bp);
|
||||
if (bp->tod)
|
||||
ptp_ocp_tod_info(bp);
|
||||
}
|
||||
|
||||
static struct device *
|
||||
|
|
Loading…
Reference in a new issue