Messages in this thread |  | | Date | Sat, 7 Nov 2020 06:56:46 -0800 | | From | Richard Cochran <> | | Subject | Re: [PATCH] pcp_clock: return EOPNOTSUPP if !CONFIG_PTP_1588_CLOCK |
| |
On Sat, Nov 07, 2020 at 11:28:23AM +0800, Wang Qing wrote: > pcp_clock_register() is checked with IS_ERR(), and will crash if !PTP, > change return value to ERR_PTR(-EOPNOTSUPP) for the !CONFIG_PTP_1588_CLOCK > and so question resolved.
NAK.
Drivers must use the documented interface.
Thanks, Richard
|  |