Commit 03eae3ac authored by Max Filippov's avatar Max Filippov

xtensa: fix screen_info, clean up unused declarations in setup.c

screen_info on xtensa has old style initializer without field names.
It was broken by the commit d9b26352 ("x86, setup: Store the boot
cursor state") that split the unused2 field into two.

Rewrite screen_info initialization with explicit field names.

Drop unused declarations/tentative definitions of RTC- and FD-related
structures. Drop inclusion of linux/timex.h when RTC is enabled in
configuration.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 709fb1f9
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
# include <linux/console.h> # include <linux/console.h>
#endif #endif
#ifdef CONFIG_RTC
# include <linux/timex.h>
#endif
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
# include <linux/seq_file.h> # include <linux/seq_file.h>
#endif #endif
...@@ -55,17 +51,16 @@ ...@@ -55,17 +51,16 @@
#include <platform/hardware.h> #include <platform/hardware.h>
#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE) #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
struct screen_info screen_info = { 0, 24, 0, 0, 0, 80, 0, 0, 0, 24, 1, 16}; struct screen_info screen_info = {
#endif .orig_x = 0,
.orig_y = 24,
#ifdef CONFIG_BLK_DEV_FD .orig_video_cols = 80,
extern struct fd_ops no_fd_ops; .orig_video_lines = 24,
struct fd_ops *fd_ops; .orig_video_isVGA = 1,
.orig_video_points = 16,
};
#endif #endif
extern struct rtc_ops no_rtc_ops;
struct rtc_ops *rtc_ops;
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
extern unsigned long initrd_start; extern unsigned long initrd_start;
extern unsigned long initrd_end; extern unsigned long initrd_end;
...@@ -77,7 +72,6 @@ extern int initrd_below_start_ok; ...@@ -77,7 +72,6 @@ extern int initrd_below_start_ok;
void *dtb_start = __dtb_start; void *dtb_start = __dtb_start;
#endif #endif
unsigned char aux_device_present;
extern unsigned long loops_per_jiffy; extern unsigned long loops_per_jiffy;
/* Command line specified as configuration option. */ /* Command line specified as configuration option. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment