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
nexedi
linux
Commits
277982e2
Commit
277982e2
authored
Jan 15, 2008
by
Kumar Gala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[POWERPC] 85xx: convert boards to use machine_device_initcall
Signed-off-by:
Kumar Gala
<
galak@kernel.crashing.org
>
parent
c51a3fdc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
arch/powerpc/platforms/85xx/mpc85xx_ads.c
arch/powerpc/platforms/85xx/mpc85xx_ads.c
+2
-4
arch/powerpc/platforms/85xx/mpc85xx_cds.c
arch/powerpc/platforms/85xx/mpc85xx_cds.c
+1
-5
arch/powerpc/platforms/85xx/mpc85xx_mds.c
arch/powerpc/platforms/85xx/mpc85xx_mds.c
+2
-5
No files found.
arch/powerpc/platforms/85xx/mpc85xx_ads.c
View file @
277982e2
...
...
@@ -233,13 +233,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
static
int
__init
declare_of_platform_devices
(
void
)
{
if
(
!
machine_is
(
mpc85xx_ads
))
return
0
;
of_platform_bus_probe
(
NULL
,
of_bus_ids
,
NULL
);
return
0
;
}
device_initcall
(
declare_of_platform_devices
);
machine_device_initcall
(
mpc85xx_ads
,
declare_of_platform_devices
);
/*
* Called very early, device-tree isn't unflattened
...
...
arch/powerpc/platforms/85xx/mpc85xx_cds.c
View file @
277982e2
...
...
@@ -222,9 +222,6 @@ static int mpc85xx_cds_8259_attach(void)
struct
device_node
*
cascade_node
=
NULL
;
int
cascade_irq
;
if
(
!
machine_is
(
mpc85xx_cds
))
return
0
;
/* Initialize the i8259 controller */
for_each_node_by_type
(
np
,
"interrupt-controller"
)
if
(
of_device_is_compatible
(
np
,
"chrp,iic"
))
{
...
...
@@ -262,8 +259,7 @@ static int mpc85xx_cds_8259_attach(void)
return
0
;
}
device_initcall
(
mpc85xx_cds_8259_attach
);
machine_device_initcall
(
mpc85xx_cds
,
mpc85xx_cds_8259_attach
);
#endif
/* CONFIG_PPC_I8259 */
...
...
arch/powerpc/platforms/85xx/mpc85xx_mds.c
View file @
277982e2
...
...
@@ -144,15 +144,12 @@ static struct of_device_id mpc85xx_ids[] = {
static
int
__init
mpc85xx_publish_devices
(
void
)
{
if
(
!
machine_is
(
mpc85xx_mds
))
return
0
;
/* Publish the QE devices */
of_platform_bus_probe
(
NULL
,
mpc85xx_ids
,
NULL
);
of_platform_bus_probe
(
NULL
,
mpc85xx_ids
,
NULL
);
return
0
;
}
device_initcall
(
mpc85xx_publish_devices
);
machine_device_initcall
(
mpc85xx_mds
,
mpc85xx_publish_devices
);
static
void
__init
mpc85xx_mds_pic_init
(
void
)
{
...
...
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