git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2454c7e
)
[POWERPC] Split initrd logic out of early_init_dt_scan_chosen() to fix warning
author
Michael Ellerman
<michael@ellerman.id.au>
Thu, 10 May 2007 07:06:30 +0000
(17:06 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 10 May 2007 11:28:13 +0000
(21:28 +1000)
If CONFIG_BLK_DEV_INITRD is not defined the prop variable in
early_init_dt_scan_chosen() is unused, causing a compiler warning.
So split the initrd logic into a separate function, allowing us to
declare prop only when we need it.
Built for both cases and booted with an initrd.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c
patch
|
blob
|
history
diff --cc
arch/powerpc/kernel/prom.c
Simple merge