Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69a18698 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman
Browse files

staging: xgifb: assume the default video mode also when module



The same default video mode should be assumed regardless if the driver
is a module or not. This won't change the current behaviour, but it will
simplify further changes.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a952cc90
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -364,12 +364,7 @@ static struct _XGIbios_mode {
};

/* mode-related variables */
#ifdef MODULE
static int xgifb_mode_idx = 1;
#else
static int xgifb_mode_idx = -1; /* Use a default mode if we are
					inside the kernel */
#endif
static int xgifb_mode_idx = -1;
static u8  XGIfb_mode_no;
static u8  XGIfb_rate_idx;