summaryrefslogtreecommitdiff
path: root/include/linux/of_platform.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-03-01 01:32:39 +0400
committerTony Lindgren <tony@atomide.com>2012-03-01 01:32:39 +0400
commit428f5ad80118a60a519dcea5ca24d27bae757ff9 (patch)
treeb99adf5a2671db3b5821e63e439ff14b74b0b31c /include/linux/of_platform.h
parentffd76d8be36da09f8456c55569c008f5aa93095e (diff)
parentfbf75da733e82bb17a01e1b907b0e40d9c028823 (diff)
downloadlinux-428f5ad80118a60a519dcea5ca24d27bae757ff9.tar.xz
Merge branch 'for_3.4/dt_irq_domain' of git://git.kernel.org/pub/scm/linux/kernel/git/bcousson/linux-omap-dt into dt-part2
Diffstat (limited to 'include/linux/of_platform.h')
-rw-r--r--include/linux/of_platform.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index 040ce2f6e8de..242fa3563e2e 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -81,7 +81,7 @@ extern struct platform_device *of_device_alloc(struct device_node *np,
struct device *parent);
extern struct platform_device *of_find_device_by_node(struct device_node *np);
-#if !defined(CONFIG_SPARC) /* SPARC has its own device registration method */
+#ifdef CONFIG_OF_ADDRESS /* device reg helpers depend on OF_ADDRESS */
/* Platform devices and busses creation */
extern struct platform_device *of_platform_device_create(struct device_node *np,
const char *bus_id,
@@ -94,7 +94,15 @@ extern int of_platform_populate(struct device_node *root,
const struct of_device_id *matches,
const struct of_dev_auxdata *lookup,
struct device *parent);
-#endif /* !CONFIG_SPARC */
+#else
+static inline int of_platform_populate(struct device_node *root,
+ const struct of_device_id *matches,
+ const struct of_dev_auxdata *lookup,
+ struct device *parent)
+{
+ return -ENODEV;
+}
+#endif /* !CONFIG_OF_ADDRESS */
#endif /* CONFIG_OF_DEVICE */