Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1baafe58
Commit
1baafe58
authored
Feb 06, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Convert Integrator AP and Assabet to new machine init method
This makes use of David Brownell's INIT_MACHINE support.
parent
124e5ca6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
arch/arm/mach-integrator/integrator_ap.c
arch/arm/mach-integrator/integrator_ap.c
+2
-5
arch/arm/mach-sa1100/assabet.c
arch/arm/mach-sa1100/assabet.c
+2
-9
No files found.
arch/arm/mach-integrator/integrator_ap.c
View file @
1baafe58
...
...
@@ -251,7 +251,7 @@ static struct platform_device cfi_flash_device = {
.
resource
=
&
cfi_flash_resource
,
};
static
int
__init
ap_init
(
void
)
static
void
__init
ap_init
(
void
)
{
unsigned
long
sc_dec
;
int
i
;
...
...
@@ -279,16 +279,13 @@ static int __init ap_init(void)
lm_device_register
(
lmdev
);
}
return
0
;
}
arch_initcall
(
ap_init
);
MACHINE_START
(
INTEGRATOR
,
"ARM-Integrator"
)
MAINTAINER
(
"ARM Ltd/Deep Blue Solutions Ltd"
)
BOOT_MEM
(
0x00000000
,
0x16000000
,
0xf1600000
)
BOOT_PARAMS
(
0x00000100
)
MAPIO
(
ap_map_io
)
INITIRQ
(
ap_init_irq
)
INIT_MACHINE
(
ap_init
)
MACHINE_END
arch/arm/mach-sa1100/assabet.c
View file @
1baafe58
...
...
@@ -92,11 +92,8 @@ static void assabet_lcd_power(int on)
ASSABET_BCR_clear
(
ASSABET_BCR_LCD_ON
);
}
static
int
__init
assabet_init
(
void
)
static
void
__init
assabet_init
(
void
)
{
if
(
!
machine_is_assabet
())
return
-
EINVAL
;
/*
* Ensure that the power supply is in "high power" mode.
*/
...
...
@@ -139,13 +136,8 @@ static int __init assabet_init(void)
"hasn't been configured in the kernel
\n
"
);
#endif
}
return
0
;
}
arch_initcall
(
assabet_init
);
/*
* On Assabet, we must probe for the Neponset board _before_
* paging_init() has occurred to actually determine the amount
...
...
@@ -332,4 +324,5 @@ MACHINE_START(ASSABET, "Intel-Assabet")
FIXUP
(
fixup_assabet
)
MAPIO
(
assabet_map_io
)
INITIRQ
(
sa1100_init_irq
)
INIT_MACHINE
(
assabet_init
)
MACHINE_END
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment