There are 100 files in the kernel source tree referencing of_platform_populate(). The majority is probably not compiled in the CONFIG_OF=n case, nevertheless changing the stub risks regressing some of those 100 callers unless great care is observed. Just making this conditional on IS_ENABLED(CONFIG_OF) is the least risky option. Thanks, Lukas