Skip to content

Commit d76f25d

Browse files
drm/vboxvideo: Drop CONFIG_VGA_CONSOLE guard to call vgacon_text_force()
It is already handled by the console.h macro since a stub inline function is defined for vgacon_text_force() if CONFIG_VGA_CONSOLE is not set. There's no need to have ifdefery in the driver when calling the function. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211112133230.1595307-3-javierm@redhat.com
1 parent 35f7775 commit d76f25d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpu/drm/vboxvideo/vbox_drv.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,8 @@ static const struct drm_driver driver = {
193193

194194
static int __init vbox_init(void)
195195
{
196-
#ifdef CONFIG_VGA_CONSOLE
197196
if (vgacon_text_force() && vbox_modeset == -1)
198197
return -EINVAL;
199-
#endif
200198

201199
if (vbox_modeset == 0)
202200
return -EINVAL;

0 commit comments

Comments
 (0)