powerpc/fb: Call internal __phys_mem_access_prot() in fbdev code
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 22 Sep 2023 08:04:59 +0000 (10:04 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2023 04:24:52 +0000 (15:24 +1100)
commitdeebe5f607d7f72f83c41163191ad0c1c4356385
tree76e6bb62d192b4f492c181916d503c25b1561bd6
parent1f92a844c35e483c00bab8a7b7d39c555ee799d8
powerpc/fb: Call internal __phys_mem_access_prot() in fbdev code

Call __phys_mem_access_prot() from the fbdev mmap helper
pgprot_framebuffer(). Allows to avoid the file argument of NULL.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230922080636.26762-6-tzimmermann@suse.de
arch/powerpc/include/asm/fb.h