mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-18 06:38:15 +01:00
arm: sunxi: Correct warning in board_fit_config_name_match
When building this with clang, we get a warning about having excess parenthesis here, or that we're incorrectly using "==" when we want "=". Correct these by using the common size macro. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> [Andre: Use SZ_512M as per Simon's suggestion] Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
parent
ffb02942fa
commit
f054f12089
@ -34,6 +34,7 @@
|
|||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/printk.h>
|
#include <linux/printk.h>
|
||||||
|
#include <linux/types.h>
|
||||||
#ifndef CONFIG_ARM64
|
#ifndef CONFIG_ARM64
|
||||||
#include <asm/armv7.h>
|
#include <asm/armv7.h>
|
||||||
#endif
|
#endif
|
||||||
@ -937,7 +938,7 @@ int board_fit_config_name_match(const char *name)
|
|||||||
#ifdef CONFIG_PINE64_DT_SELECTION
|
#ifdef CONFIG_PINE64_DT_SELECTION
|
||||||
if (strstr(best_dt_name, "-pine64-plus")) {
|
if (strstr(best_dt_name, "-pine64-plus")) {
|
||||||
/* Differentiate the Pine A64 boards by their DRAM size. */
|
/* Differentiate the Pine A64 boards by their DRAM size. */
|
||||||
if ((gd->ram_size == 512 * 1024 * 1024))
|
if (gd->ram_size == SZ_512M)
|
||||||
best_dt_name = "sun50i-a64-pine64";
|
best_dt_name = "sun50i-a64-pine64";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user