mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
sh: machvec rework.
Some more machvec overhauling and setup code cleanup. Kill off get_system_type() and platform_setup(), we can do these both through the machvec. While we're add it, kill off more useless mach.c's and drop some legacy cruft from setup.c. Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
bc8fb5d047
commit
2c7834a6f1
31 changed files with 481 additions and 776 deletions
|
|
@ -8,17 +8,18 @@
|
|||
*/
|
||||
|
||||
#ifndef _ASM_SH_MACHVEC_H
|
||||
#define _ASM_SH_MACHVEC_H 1
|
||||
#define _ASM_SH_MACHVEC_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/time.h>
|
||||
|
||||
#include <asm/machtypes.h>
|
||||
#include <asm/machvec_init.h>
|
||||
|
||||
struct device;
|
||||
|
||||
struct sh_machine_vector {
|
||||
void (*mv_setup)(char **cmdline_p);
|
||||
const char *mv_name;
|
||||
int mv_nr_irqs;
|
||||
|
||||
u8 (*mv_inb)(unsigned long);
|
||||
|
|
@ -65,4 +66,6 @@ struct sh_machine_vector {
|
|||
|
||||
extern struct sh_machine_vector sh_mv;
|
||||
|
||||
#define get_system_type() sh_mv.mv_name
|
||||
|
||||
#endif /* _ASM_SH_MACHVEC_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue