mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
devicetree: Add empty of_platform_populate() for !CONFIG_OF_ADDRESS (sparc)
Sparc has its own helpers for translating address ranges when the device tree is parsed at boot time, and it isn't able to use of_platform_populate(). However, there are some device drivers that want to use that function on other DT enabled platforms (ie. TWL4030). This patch adds an empty of_platform_populate() implementation that returns an error when CONFIG_OF_ADDRESS is not selected. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Cc: Benoit Cousson <b-cousson@ti.com> Cc: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
d593f25ff2
commit
964dba2834
3 changed files with 14 additions and 7 deletions
|
@ -55,7 +55,7 @@ EXPORT_SYMBOL(of_find_device_by_node);
|
|||
#include <asm/dcr.h>
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_SPARC)
|
||||
#ifdef CONFIG_OF_ADDRESS
|
||||
/*
|
||||
* The following routines scan a subtree and registers a device for
|
||||
* each applicable node.
|
||||
|
@ -462,4 +462,4 @@ int of_platform_populate(struct device_node *root,
|
|||
of_node_put(root);
|
||||
return rc;
|
||||
}
|
||||
#endif /* !CONFIG_SPARC */
|
||||
#endif /* CONFIG_OF_ADDRESS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue