diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 85467914ad23..11220044b01a 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -535,9 +535,7 @@ void __remove_pages(struct zone *zone, unsigned long phys_start_pfn, unsigned long map_offset = 0; int sections_to_remove; - /* In the ZONE_DEVICE case device driver owns the memory region */ - if (is_dev_zone(zone)) - map_offset = vmem_altmap_offset(altmap); + map_offset = vmem_altmap_offset(altmap); clear_zone_contiguous(zone);