From: Michael Ellerman Date: Thu, 10 May 2007 07:06:30 +0000 (+1000) Subject: [POWERPC] Split initrd logic out of early_init_dt_scan_chosen() to fix warning X-Git-Tag: v2.6.22-rc1~108^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40472a55461a672c929a092e648f6c5d21c9c310;p=pandora-kernel.git [POWERPC] Split initrd logic out of early_init_dt_scan_chosen() to fix warning 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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed