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
ca26996f
Commit
ca26996f
authored
Jul 07, 2004
by
Deepak Saxena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] IXP4xx: platform_add_device() to platform_add_devices() conversion
Signed-off-by:
Deepak Saxena
<
dsaxena@plexity.net
>
parent
afb7238d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
arch/arm/mach-ixp4xx/coyote-setup.c
arch/arm/mach-ixp4xx/coyote-setup.c
+6
-2
arch/arm/mach-ixp4xx/ixdp425-setup.c
arch/arm/mach-ixp4xx/ixdp425-setup.c
+7
-3
arch/arm/mach-ixp4xx/prpmc1100-setup.c
arch/arm/mach-ixp4xx/prpmc1100-setup.c
+6
-2
No files found.
arch/arm/mach-ixp4xx/coyote-setup.c
View file @
ca26996f
...
...
@@ -63,7 +63,7 @@ static struct resource coyote_flash_resource = {
.
flags
=
IORESOURCE_MEM
,
};
static
struct
platform_device
coyote_flash
_device
=
{
static
struct
platform_device
coyote_flash
=
{
.
name
=
"IXP4XX-Flash"
,
.
id
=
0
,
.
dev
=
{
...
...
@@ -73,9 +73,13 @@ static struct platform_device coyote_flash_device = {
.
resource
=
&
coyote_flash_resource
,
};
static
struct
platform_device
*
coyote_devices
[]
__initdata
=
{
&
coyote_flash
};
static
void
__init
coyote_init
(
void
)
{
platform_add_device
(
&
coyote_flash_device
);
platform_add_device
s
(
&
coyote_devices
,
ARRAY_SIZE
(
coyote_devices
)
);
}
MACHINE_START
(
ADI_COYOTE
,
"ADI Engineering IXP4XX Coyote Development Platform"
)
...
...
arch/arm/mach-ixp4xx/ixdp425-setup.c
View file @
ca26996f
...
...
@@ -77,7 +77,7 @@ static struct resource ixdp425_flash_resource = {
.
flags
=
IORESOURCE_MEM
,
};
static
struct
platform_device
ixdp425_flash
_device
=
{
static
struct
platform_device
ixdp425_flash
=
{
.
name
=
"IXP4XX-Flash"
,
.
id
=
0
,
.
dev
=
{
...
...
@@ -101,10 +101,14 @@ static struct platform_device ixdp425_i2c_controller = {
.
num_resources
=
0
};
static
struct
platform_device
*
ixdp425_devices
[]
__initdata
=
{
&
ixdp425_i2c_controller
,
&
ixdp425_flash
};
static
void
__init
ixdp425_init
(
void
)
{
platform_add_device
(
&
ixdp425_flash_device
);
platform_add_device
(
&
ixdp425_i2c_controller
);
platform_add_devices
(
&
ixdp425_devices
,
ARRAY_SIZE
(
ixdp425_devices
));
}
MACHINE_START
(
IXDP425
,
"Intel IXDP425 Development Platform"
)
...
...
arch/arm/mach-ixp4xx/prpmc1100-setup.c
View file @
ca26996f
...
...
@@ -63,7 +63,7 @@ static struct resource prpmc1100_flash_resource = {
.
flags
=
IORESOURCE_MEM
,
};
static
struct
platform_device
prpmc1100_flash
_device
=
{
static
struct
platform_device
prpmc1100_flash
=
{
.
name
=
"IXP4XX-Flash"
,
.
id
=
0
,
.
dev
=
{
...
...
@@ -73,9 +73,13 @@ static struct platform_device prpmc1100_flash_device = {
.
resource
=
&
prpmc1100_flash_resource
,
};
static
struct
platform_device
*
prpmc1100_devices
[]
__initdata
=
{
&
prpmc1100_flash
};
static
void
__init
prpmc1100_init
(
void
)
{
platform_add_device
(
&
prpmc1100_flash_device
);
platform_add_device
s
(
&
prpmc1100_devices
,
ARRAY_SIZE
(
prpmc1100_devices
)
);
}
MACHINE_START
(
PRPMC1100
,
"Motorola PrPMC1100"
)
...
...
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