Skip to content

Commit 47e120d

Browse files
lkundraksre
authored andcommitted
x86/platform/olpc: Trivial code move in DT fixup
This makes the following patch more concise. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 0806a13 commit 47e120d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/x86/platform/olpc/olpc_dt.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,6 @@ void __init olpc_dt_fixup(void)
241241

242242
pr_info("PROM DT: Old firmware detected, applying fixes\n");
243243

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-
249244
board_rev = olpc_dt_get_board_revision();
250245
if (!board_rev)
251246
return;
@@ -271,6 +266,11 @@ void __init olpc_dt_fixup(void)
271266
olpc_dt_interpret(" \" olpc,xo1-rtc\" +compatible");
272267
olpc_dt_interpret("device-end");
273268
}
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");
274274
}
275275

276276
void __init olpc_dt_build_devicetree(void)

0 commit comments

Comments
 (0)