projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1618df6
)
ptp: ocp: Parameterize the TOD information display.
author
Jonathan Lemon
<jonathan.lemon@gmail.com>
Wed, 15 Sep 2021 02:16:20 +0000
(19:16 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 15 Sep 2021 10:10:00 +0000
(11:10 +0100)
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>
drivers/ptp/ptp_ocp.c
patch
|
blob
|
history
diff --git
a/drivers/ptp/ptp_ocp.c
b/drivers/ptp/ptp_ocp.c
index d37eac69150ac7f2f13f1987ffa3ca2cb6608f8f..2a6cc762c60e437d5f1ed93a86f5bbbf6198b9a0 100644
(file)
--- 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 *