aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/platform/olpc/olpc_dt.c33
1 files changed, 19 insertions, 14 deletions
diff --git a/arch/x86/platform/olpc/olpc_dt.c b/arch/x86/platform/olpc/olpc_dt.c
index ac9e7bf49b66..87e1d81684c6 100644
--- a/arch/x86/platform/olpc/olpc_dt.c
+++ b/arch/x86/platform/olpc/olpc_dt.c
@@ -242,9 +242,9 @@ void __init olpc_dt_fixup(void)
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 */ 244 /* Add olpc,xo1-battery compatible marker to battery node */
245 olpc_dt_interpret("\" /battery@0\" find-device" 245 olpc_dt_interpret("\" /battery@0\" find-device");
246 " \" olpc,xo1-battery\" +compatible" 246 olpc_dt_interpret(" \" olpc,xo1-battery\" +compatible");
247 " device-end"); 247 olpc_dt_interpret("device-end");
248 248
249 board_rev = olpc_dt_get_board_revision(); 249 board_rev = olpc_dt_get_board_revision();
250 if (!board_rev) 250 if (!board_rev)
@@ -252,19 +252,24 @@ void __init olpc_dt_fixup(void)
252 252
253 if (board_rev >= olpc_board_pre(0xd0)) { 253 if (board_rev >= olpc_board_pre(0xd0)) {
254 /* XO-1.5: add dcon device */ 254 /* XO-1.5: add dcon device */
255 olpc_dt_interpret("\" /pci/display@1\" find-device" 255 olpc_dt_interpret("\" /pci/display@1\" find-device");
256 " new-device" 256 olpc_dt_interpret(" new-device");
257 " \" dcon\" device-name \" olpc,xo1-dcon\" +compatible" 257 olpc_dt_interpret(" \" dcon\" device-name");
258 " finish-device device-end"); 258 olpc_dt_interpret(" \" olpc,xo1-dcon\" +compatible");
259 olpc_dt_interpret(" finish-device");
260 olpc_dt_interpret("device-end");
259 } else { 261 } else {
260 /* XO-1: add dcon device, mark RTC as olpc,xo1-rtc */ 262 /* XO-1: add dcon device, mark RTC as olpc,xo1-rtc */
261 olpc_dt_interpret("\" /pci/display@1,1\" find-device" 263 olpc_dt_interpret("\" /pci/display@1,1\" find-device");
262 " new-device" 264 olpc_dt_interpret(" new-device");
263 " \" dcon\" device-name \" olpc,xo1-dcon\" +compatible" 265 olpc_dt_interpret(" \" dcon\" device-name");
264 " finish-device device-end" 266 olpc_dt_interpret(" \" olpc,xo1-dcon\" +compatible");
265 " \" /rtc\" find-device" 267 olpc_dt_interpret(" finish-device");
266 " \" olpc,xo1-rtc\" +compatible" 268 olpc_dt_interpret("device-end");
267 " device-end"); 269
270 olpc_dt_interpret("\" /rtc\" find-device");
271 olpc_dt_interpret(" \" olpc,xo1-rtc\" +compatible");
272 olpc_dt_interpret("device-end");
268 } 273 }
269} 274}
270 275