Skip to content

Commit

Permalink
[PATCH] Check for null init_early routine
Browse files Browse the repository at this point in the history
Add a check for a null ppc_md.init_early to allow platforms that
don't require an init_early routine to just set this member to null.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Nov 13, 2006
1 parent fc9e8b4 commit 57744ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ void __init setup_system(void)
* setting up the hash table pointers. It also sets up some interrupt-mapping
* related options that will be used by finish_device_tree()
*/
ppc_md.init_early();
if (ppc_md.init_early)
ppc_md.init_early();

/*
* We can discover serial ports now since the above did setup the
Expand Down

0 comments on commit 57744ea

Please sign in to comment.