[PATCH v7 5/7] mm, hmm: Use devm semantics for hmm_devmem_{add, remove}

2018-10-12 Thread Dan Williams
devm semantics arrange for resources to be torn down when device-driver-probe fails or when device-driver-release completes. Similar to devm_memremap_pages() there is no need to support an explicit remove operation when the users properly adhere to devm semantics. Note that devm_kzalloc()

[PATCH v7 5/7] mm, hmm: Use devm semantics for hmm_devmem_{add, remove}

2018-10-12 Thread Dan Williams
devm semantics arrange for resources to be torn down when device-driver-probe fails or when device-driver-release completes. Similar to devm_memremap_pages() there is no need to support an explicit remove operation when the users properly adhere to devm semantics. Note that devm_kzalloc()