mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
powerpc/85xx: Fix compile warnings/errors if CONFIG_SYS_DPAA_FMAN isn't set
Add ifdef protection around fman specific code related to device tree clock setup. If we dont have CONFIG_SYS_DPAA_FMAN defined we shouldn't be executing this code. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@ -198,7 +198,10 @@ void fdt_fixup_qportals(void *blob)
|
||||
u32 liodns[2];
|
||||
#endif
|
||||
const int *ci = fdt_getprop(blob, off, "cell-index", NULL);
|
||||
int j, i = *ci;
|
||||
int i = *ci;
|
||||
#ifdef CONFIG_SYS_DPAA_FMAN
|
||||
int j;
|
||||
#endif
|
||||
|
||||
err = fdt_setprop(blob, off, "compatible", compat, compat_len);
|
||||
if (err < 0)
|
||||
|
Reference in New Issue
Block a user