summaryrefslogtreecommitdiff
path: root/arch/x86/lib/lpc-uclass.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/lib/lpc-uclass.c')
-rw-r--r--arch/x86/lib/lpc-uclass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/lib/lpc-uclass.c b/arch/x86/lib/lpc-uclass.c
index 505d7a943d..1302a6e34a 100644
--- a/arch/x86/lib/lpc-uclass.c
+++ b/arch/x86/lib/lpc-uclass.c
@@ -10,5 +10,7 @@
UCLASS_DRIVER(lpc) = {
.id = UCLASS_LPC,
.name = "lpc",
+#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
.post_bind = dm_scan_fdt_dev,
+#endif
};