Re: [PATCH v2 8/9] hyperv: avoid dependency on screen_info
Javier Martinez Canillas <[email protected]>
| Newsgroups | gmane.linux.ports.riscv,gmane.linux.ports.alpha,gmane.linux.kernel,gmane.linux.ports.arm.kernel,gmane.linux.kernel.efi,gmane.linux.ports.hexagon,gmane.linux.ports.ia64,gmane.linux.ports.mips,gmane.linux.ports.ppc64.devel,gmane.linux.ports.sh.devel,gmane.linux.ports.sparc,gmane.comp.video.dri.devel |
|---|---|
| Message-ID | <[email protected]> |
Arnd Bergmann <[email protected]> writes: > From: Arnd Bergmann <[email protected]> > > The two hyperv framebuffer drivers (hyperv_fb or hyperv_drm_drv) access the > global screen_info in order to take over from the sysfb framebuffer, which > in turn could be handled by simplefb, simpledrm or efifb. Similarly, the > vmbus_drv code marks the original EFI framebuffer as reserved, but this > is not required if there is no sysfb. > > As a preparation for making screen_info itself more local to the sysfb > helper code, add a compile-time conditional in all three files that relate > to hyperv fb and just skip this code if there is no sysfb that needs to > be unregistered. > > Signed-off-by: Arnd Bergmann <[email protected]> > --- Reviewed-by: Javier Martinez Canillas <[email protected]> -- Best regards, Javier Martinez Canillas Core Platforms Red Hat