]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/page_alloc.c
ASoC: Intel: sof-rt5682: add a check for devm_clk_get
[linux.git] / mm / page_alloc.c
index c4cdd39548041f979859b0bdd50a7674bebd18cd..272c6de1bf4ead31c22aca202940da00bc8eaf8b 100644 (file)
@@ -5926,7 +5926,7 @@ void __ref memmap_init_zone_device(struct zone *zone,
        unsigned long start = jiffies;
        int nid = pgdat->node_id;
 
-       if (WARN_ON_ONCE(!pgmap || !is_dev_zone(zone)))
+       if (WARN_ON_ONCE(!pgmap || zone_idx(zone) != ZONE_DEVICE))
                return;
 
        /*
@@ -5974,7 +5974,7 @@ void __ref memmap_init_zone_device(struct zone *zone,
                 * pfn out of zone.
                 *
                 * Please note that MEMMAP_HOTPLUG path doesn't clear memmap
-                * because this is done early in sparse_add_one_section
+                * because this is done early in section_activate()
                 */
                if (!(pfn & (pageblock_nr_pages - 1))) {
                        set_pageblock_migratetype(page, MIGRATE_MOVABLE);