]> 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)
commitda04cb68c0b88344553d3cdf72c2c39abd8b171b
tree44fbff0587aa59af133850910dc43f0203b09ea4
parent69eef1dd2e33eaa56d3af4cc2579e5f54d1351e8
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