]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/of.h
Merge tag 'devicetree-for-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/robh...
[karo-tx-linux.git] / include / linux / of.h
index 588fdd5d21adbb3247ed2772554573b57e379184..7fcb681baadf172824017d067721c65189638565 100644 (file)
@@ -929,7 +929,7 @@ static inline int of_get_available_child_count(const struct device_node *np)
        return num;
 }
 
-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && !defined(MODULE)
 #define _OF_DECLARE(table, name, compat, fn, fn_type)                  \
        static const struct of_device_id __of_table_##name              \
                __used __section(__##table##_of_table)                  \