Skip to content

Commit deebe5f

Browse files
Thomas Zimmermannmpe
authored andcommitted
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
1 parent 1f92a84 commit deebe5f

File tree

1 file changed

+1
-6
lines changed
  • arch/powerpc/include/asm

1 file changed

+1
-6
lines changed

arch/powerpc/include/asm/fb.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
88
unsigned long vm_start, unsigned long vm_end,
99
unsigned long offset)
1010
{
11-
/*
12-
* PowerPC's implementation of phys_mem_access_prot() does
13-
* not use the file argument. Set it to NULL in preparation
14-
* of later updates to the interface.
15-
*/
16-
return phys_mem_access_prot(NULL, PHYS_PFN(offset), vm_end - vm_start, prot);
11+
return __phys_mem_access_prot(PHYS_PFN(offset), vm_end - vm_start, prot);
1712
}
1813
#define pgprot_framebuffer pgprot_framebuffer
1914

0 commit comments

Comments
 (0)