aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/platform/olpc/olpc_dt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/platform/olpc/olpc_dt.c b/arch/x86/platform/olpc/olpc_dt.c
index 87e1d81684c6..820236b511b3 100644
--- a/arch/x86/platform/olpc/olpc_dt.c
+++ b/arch/x86/platform/olpc/olpc_dt.c
@@ -241,11 +241,6 @@ void __init olpc_dt_fixup(void)
241 241
242 pr_info("PROM DT: Old firmware detected, applying fixes\n"); 242 pr_info("PROM DT: Old firmware detected, applying fixes\n");
243 243
244 /* Add olpc,xo1-battery compatible marker to battery node */
245 olpc_dt_interpret("\" /battery@0\" find-device");
246 olpc_dt_interpret(" \" olpc,xo1-battery\" +compatible");
247 olpc_dt_interpret("device-end");
248
249 board_rev = olpc_dt_get_board_revision(); 244 board_rev = olpc_dt_get_board_revision();
250 if (!board_rev) 245 if (!board_rev)
251 return; 246 return;
@@ -271,6 +266,11 @@ void __init olpc_dt_fixup(void)
271 olpc_dt_interpret(" \" olpc,xo1-rtc\" +compatible"); 266 olpc_dt_interpret(" \" olpc,xo1-rtc\" +compatible");
272 olpc_dt_interpret("device-end"); 267 olpc_dt_interpret("device-end");
273 } 268 }
269
270 /* Add olpc,xo1-battery compatible marker to battery node */
271 olpc_dt_interpret("\" /battery@0\" find-device");
272 olpc_dt_interpret(" \" olpc,xo1-battery\" +compatible");
273 olpc_dt_interpret("device-end");
274} 274}
275 275
276void __init olpc_dt_build_devicetree(void) 276void __init olpc_dt_build_devicetree(void)