Merge branch 'dt/linus' into HEAD

This commit is contained in:
Rob Herring
2018-09-19 15:10:03 -07:00

View File

@@ -140,6 +140,9 @@ void of_populate_phandle_cache(void)
if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL)
phandles++;
if (!phandles)
goto out;
cache_entries = roundup_pow_of_two(phandles);
phandle_cache_mask = cache_entries - 1;