]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vboxvideo: Init fb_info.fix.smem once from fbdev_create
authorHans de Goede <hdegoede@redhat.com>
Tue, 18 Sep 2018 17:44:34 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 10:32:05 +0000 (12:32 +0200)
commit00f5389d1168eb2c7c5ca7cdeb2a6725817a5177
tree44fbff0587aa59af133850910dc43f0203b09ea4
parentc623c14029820c093fdd5a184b0e9d64066d1052
staging: vboxvideo: Init fb_info.fix.smem once from fbdev_create

The fbdev compat fb gets pinned into VRAM at creation and then gets pinned
a second time when set as scanout buffer and unpinned when replaced, this
means its pin count never becomes less then 1, so it is always at the same
address and there is no need for the vbox_fbdev_set_base() call.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vboxvideo/vbox_drv.h
drivers/staging/vboxvideo/vbox_fb.c
drivers/staging/vboxvideo/vbox_mode.c