From: Hauke Mehrtens Date: Sat, 31 May 2014 13:34:55 +0000 (+0200) Subject: backports: fix build if CONFIG_PTP_1588_CLOCK=m X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f9394bb11e68f55ac3073fb40842c989b2cc27f8;p=openwrt%2Fstaging%2Fblogic.git backports: fix build if CONFIG_PTP_1588_CLOCK=m ifdef just checked if this was build into the kernel and not if it was build as a module. Signed-off-by: Hauke Mehrtens --- diff --git a/backport/compat/compat-3.5.c b/backport/compat/compat-3.5.c index f9590d730b20..2727eb323b9c 100644 --- a/backport/compat/compat-3.5.c +++ b/backport/compat/compat-3.5.c @@ -66,7 +66,7 @@ EXPORT_SYMBOL_GPL(overflowuid); EXPORT_SYMBOL_GPL(overflowgid); #endif -#ifdef CONFIG_PTP_1588_CLOCK +#if IS_ENABLED(CONFIG_PTP_1588_CLOCK) int ptp_clock_index(struct ptp_clock *ptp) { return ptp->index;