x86: Add probe_roms to x86_init
probe_roms is only used on 32bit. Add it to the x86_init ops and remove the #ifdefs. Default initializer is x86_init_noop() which is overridden in the 32bit boot code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
57844a8f8e
commit
f7cf5a5b8c
4 changed files with 18 additions and 3 deletions
|
@ -1,11 +1,21 @@
|
|||
#ifndef _ASM_X86_PLATFORM_H
|
||||
#define _ASM_X86_PLATFORM_H
|
||||
|
||||
/**
|
||||
* struct x86_init_resources - platform specific resource related ops
|
||||
* @probe_roms: probe BIOS roms
|
||||
*
|
||||
*/
|
||||
struct x86_init_resources {
|
||||
void (*probe_roms)(void);
|
||||
};
|
||||
|
||||
/**
|
||||
* struct x86_init_ops - functions for platform specific setup
|
||||
*
|
||||
*/
|
||||
struct x86_init_ops {
|
||||
struct x86_init_resources resources;
|
||||
};
|
||||
|
||||
extern struct x86_init_ops x86_init;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue