diff --git a/Kernel/Graphics/FramebufferDevice.cpp b/Kernel/Graphics/FramebufferDevice.cpp index fd1bd27277..b8eb5ac67d 100644 --- a/Kernel/Graphics/FramebufferDevice.cpp +++ b/Kernel/Graphics/FramebufferDevice.cpp @@ -95,7 +95,7 @@ UNMAP_AFTER_INIT void FramebufferDevice::initialize() } UNMAP_AFTER_INIT FramebufferDevice::FramebufferDevice(PhysicalAddress addr, size_t pitch, size_t width, size_t height) - : BlockDevice(29, GraphicsManagement::the().current_minor_number()) + : BlockDevice(29, GraphicsManagement::the().allocate_minor_device_number()) , m_framebuffer_address(addr) , m_framebuffer_pitch(pitch) , m_framebuffer_width(width) diff --git a/Kernel/Graphics/GraphicsManagement.h b/Kernel/Graphics/GraphicsManagement.h index da830259a2..144f480db9 100644 --- a/Kernel/Graphics/GraphicsManagement.h +++ b/Kernel/Graphics/GraphicsManagement.h @@ -32,7 +32,7 @@ public: static bool is_initialized(); bool initialize(); - unsigned current_minor_number() { return m_current_minor_number++; }; + unsigned allocate_minor_device_number() { return m_current_minor_number++; }; GraphicsManagement(); bool framebuffer_devices_allowed() const { return m_framebuffer_devices_allowed; }