diff options
author | Giuseppe CAVALLARO <[email protected]> | 2016-10-19 09:06:41 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-10-19 15:10:30 -0400 |
commit | c30a70d3ac60f3216e8d60d7746caad084a7eb46 (patch) | |
tree | 06303ac6f3ec3be5ecb30a38e3c4d1f5a72f15a4 /net/unix/sysctl_net_unix.c | |
parent | 82454581d76ccb95535ba6898b39ac5baa123633 (diff) |
stmmac: fix and review the ptp registration.
The commit commit 7086605a6ab5 ("stmmac: fix error check when init ptp")
breaks the procedure added by the
commit efee95f42b5d ("ptp_clock: future-proofing drivers against PTP
subsystem becoming optional")
So this patch tries to re-import the logic added by the latest
commit above: it makes sense to have the stmmac_ptp_register
as void function and, inside the main, the stmmac_init_ptp can fails
in case of the capability cannot be supported by the HW.
Signed-off-by: Giuseppe Cavallaro <[email protected]>
Cc: Alexandre TORGUE <[email protected]>
Cc: Rayagond Kokatanur <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Nicolas Pitre <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions