]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fbdev: kyro: Add missing PCI memory region request
authorGiovanni Di Santi <giovanni.disanti.lkl@gmail.com>
Wed, 9 Jul 2025 09:53:52 +0000 (11:53 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 27 Jul 2025 17:56:51 +0000 (19:56 +0200)
commitb56f93f568dc0214963d9d9d2fd2c992cf241c76
tree8f5b9f06c5b88ea45e95f43e2d7e06774d7e4395
parentc80de50c192f135a78f6c924818b2f5cd6ca7524
fbdev: kyro: Add missing PCI memory region request

The kyro framebuffer driver did not request its PCI memory regions,
which could lead to conflicts with other drivers.  This change
addresses the task "Request memory regions in all fbdev drivers"
from the file Documentation/gpu/todo.rst.

This is addressed by using the managed device functions pcim_enable_device()
and pcim_request_all_regions(). This simplifies the code by making error
handling and driver removal cleanup automatic for these resources.

Signed-off-by: Giovanni Di Santi <giovanni.disanti.lkl@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/kyro/fbdev.c