Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c67fa6ed authored by Tan Xiaojun's avatar Tan Xiaojun Committed by Alex Deucher
Browse files

drm/ttm: add ttm_bo_io_mem_pfn to check io_mem_pfn



The io_mem_pfn field was added in commit ea642c32 ("drm/ttm: add
io_mem_pfn callback") and is called unconditionally. However, not all
drivers were updated to set it.

Use the ttm_bo_default_io_mem_pfn function if a driver did not set its
own. And add new function ttm_bo_io_mem_pfn() as wrapper.

Signed-off-by: default avatarMichal Srb <msrb@suse.com>
Signed-off-by: default avatarTan Xiaojun <tanxiaojun@huawei.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 727ffdf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment