diff options
author | Jonathan Lemon <jonathan.lemon@gmail.com> | 2021-09-15 04:16:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-15 12:10:00 +0200 |
commit | 498ad3f4389a1f1d2b0e09fa8f906152b0cfaf67 (patch) | |
tree | 48807633a3d5348a748d704492c3ccc3ed60e97b /drivers/ptp | |
parent | ptp: ocp: parameterize the i2c driver used (diff) | |
download | linux-498ad3f4389a1f1d2b0e09fa8f906152b0cfaf67.tar.xz linux-498ad3f4389a1f1d2b0e09fa8f906152b0cfaf67.zip |
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>
Diffstat (limited to 'drivers/ptp')
-rw-r--r-- | drivers/ptp/ptp_ocp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c index d37eac69150a..2a6cc762c60e 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -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 * |