aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index dd10626a615f..dc6e39696b64 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -929,7 +929,7 @@ static inline int of_get_available_child_count(const struct device_node *np)
929 return num; 929 return num;
930} 930}
931 931
932#ifdef CONFIG_OF 932#if defined(CONFIG_OF) && !defined(MODULE)
933#define _OF_DECLARE(table, name, compat, fn, fn_type) \ 933#define _OF_DECLARE(table, name, compat, fn, fn_type) \
934 static const struct of_device_id __of_table_##name \ 934 static const struct of_device_id __of_table_##name \
935 __used __section(__##table##_of_table) \ 935 __used __section(__##table##_of_table) \