Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt: Add empty of_find_node_by_name() function

This commit adds an empty of_find_node_by_name() function for !CONFIG_OF
builds.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Peter Ujfalusi and committed by
Samuel Ortiz
1cc44f43 c531241d

+6
+6
include/linux/of.h
··· 308 308 return "<no-node>"; 309 309 } 310 310 311 + static inline struct device_node *of_find_node_by_name(struct device_node *from, 312 + const char *name) 313 + { 314 + return NULL; 315 + } 316 + 311 317 static inline bool of_have_populated_dt(void) 312 318 { 313 319 return false;