drm/amdgpu: Add amdgpu_find_mm_node()
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Fri, 6 Oct 2017 21:36:35 +0000 (17:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:08 +0000 (15:27 -0400)
commite1d515052f9075eb1b791b21467d79db3529db83
treea805ac42a1f8430de2fdcaed9d8c842d4ab63a8a
parent1eca5a530dc3ac0a2fadd21da1c9e6c729a4a2a1
drm/amdgpu: Add amdgpu_find_mm_node()

Replace some commonly repeated code with a function.

v2: Use amdgpu_find_mm_node() in amdgpu_ttm_io_mem_pfn()

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c