Re: [PATCH] ptp_clock: future-proofing drivers against PTP subsystem becoming optional

From: David Miller
Date: Thu Sep 22 2016 - 02:27:36 EST


From: Nicolas Pitre <nicolas.pitre@xxxxxxxxxx>
Date: Tue, 20 Sep 2016 19:25:58 -0400 (EDT)

>
> Drivers must be ready to accept NULL from ptp_clock_register() if the
> PTP clock subsystem is configured out.
>
> This patch documents that and ensures that all drivers cope well
> with a NULL return.
>
> Signed-off-by: Nicolas Pitre <nico@xxxxxxxxxx>
> Reviewed-by: Eugenia Emantayev <eugenia@xxxxxxxxxxxx>
>
> ---
>
> Let's have the basics merged now and work out the actual Kconfig issue
> separately. Richard, if you agree with this patch, I think this could go
> via the netdev tree.

Applied to net-next, thanks.