Merge branch 'master' of git://git.denx.de/u-boot-socfpga
[oweals/u-boot.git] / arch / x86 / lib / lpc-uclass.c
index 505d7a943d2e1e75aa9e6609d8df229abc1b72ee..1302a6e34a144a9f3441ae92d7ecce9768b00666 100644 (file)
@@ -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
 };