Loading drivers/base/dma-contiguous.c +9 −0 Original line number Diff line number Diff line Loading @@ -225,10 +225,19 @@ int __init cma_fdt_scan(unsigned long node, const char *uname, unsigned long size_cells = dt_root_size_cells; unsigned long addr_cells = dt_root_addr_cells; phys_addr_t limit = MEMBLOCK_ALLOC_ANYWHERE; char *status; if (!of_get_flat_dt_prop(node, "linux,reserve-contiguous-region", NULL)) return 0; status = of_get_flat_dt_prop(node, "status", NULL); /* * Yes, we actually want strncmp here to check for a prefix * ok vs. okay */ if (status && (strncmp(status, "ok", 2) != 0)) return 0; prop = of_get_flat_dt_prop(node, "#size-cells", NULL); if (prop) size_cells = be32_to_cpup(prop); Loading Loading
drivers/base/dma-contiguous.c +9 −0 Original line number Diff line number Diff line Loading @@ -225,10 +225,19 @@ int __init cma_fdt_scan(unsigned long node, const char *uname, unsigned long size_cells = dt_root_size_cells; unsigned long addr_cells = dt_root_addr_cells; phys_addr_t limit = MEMBLOCK_ALLOC_ANYWHERE; char *status; if (!of_get_flat_dt_prop(node, "linux,reserve-contiguous-region", NULL)) return 0; status = of_get_flat_dt_prop(node, "status", NULL); /* * Yes, we actually want strncmp here to check for a prefix * ok vs. okay */ if (status && (strncmp(status, "ok", 2) != 0)) return 0; prop = of_get_flat_dt_prop(node, "#size-cells", NULL); if (prop) size_cells = be32_to_cpup(prop); Loading