drm/panthor: Don't use virt_to_pfn()
authorSteven Price <steven.price@arm.com>
Mon, 18 Mar 2024 14:51:19 +0000 (14:51 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 25 Mar 2024 08:18:04 +0000 (09:18 +0100)
commit0b45921c2a8831834a5f8a52ddd0b25b5b1c6faf
tree8afcade1bc8ea052ca6149b86f808f34698252c2
parent0cd8363ed802922e39446d783f767b3e09335ddc
drm/panthor: Don't use virt_to_pfn()

virt_to_pfn() isn't available on x86 (except to xen) so breaks
COMPILE_TEST builds. Avoid its use completely by instead storing the
struct page pointer allocated in panthor_device_init() and using
page_to_pfn() instead.

Signed-off-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240318145119.368582-1-steven.price@arm.com
drivers/gpu/drm/panthor/panthor_device.c
drivers/gpu/drm/panthor/panthor_device.h