summaryrefslogtreecommitdiff
path: root/include/common/fdt_wrappers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common/fdt_wrappers.h')
-rw-r--r--include/common/fdt_wrappers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h
index db72f180..18a6d103 100644
--- a/include/common/fdt_wrappers.h
+++ b/include/common/fdt_wrappers.h
@@ -10,7 +10,7 @@
#define __FDT_WRAPPERS__
/* Number of cells, given total length in bytes. Each cell is 4 bytes long */
-#define NCELLS(l) (l / 4)
+#define NCELLS(len) ((len) / 4)
int fdtw_read_cells(const void *dtb, int node, const char *prop,
unsigned int cells, void *value);