backports: fix build if CONFIG_PTP_1588_CLOCK=m
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 31 May 2014 13:34:55 +0000 (15:34 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Jun 2014 22:16:18 +0000 (00:16 +0200)
ifdef just checked if this was build into the kernel and not if it was
build as a module.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/compat/compat-3.5.c

index f9590d730b20e4a6635374118ea5157d8b976ff8..2727eb323b9c801d0a4978f1568ba6d8bb895daa 100644 (file)
@@ -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;