summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/olpc_ofw.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/olpc_ofw.c')
-rw-r--r--arch/x86/kernel/olpc_ofw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/olpc_ofw.c b/arch/x86/kernel/olpc_ofw.c
index 3218aa71ab5e..787320464379 100644
--- a/arch/x86/kernel/olpc_ofw.c
+++ b/arch/x86/kernel/olpc_ofw.c
@@ -74,6 +74,12 @@ int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res,
}
EXPORT_SYMBOL_GPL(__olpc_ofw);
+bool olpc_ofw_present(void)
+{
+ return olpc_ofw_cif != NULL;
+}
+EXPORT_SYMBOL_GPL(olpc_ofw_present);
+
/* OFW cif _should_ be above this address */
#define OFW_MIN 0xff000000