Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
50465d0d
Commit
50465d0d
authored
Jan 09, 2006
by
Russell King
Committed by
Russell King
Jan 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Update am79c961 to use struct platform_driver
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
e9368f82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/net/arm/am79c961a.c
drivers/net/arm/am79c961a.c
+6
-6
No files found.
drivers/net/arm/am79c961a.c
View file @
50465d0d
...
@@ -668,9 +668,8 @@ static void __init am79c961_banner(void)
...
@@ -668,9 +668,8 @@ static void __init am79c961_banner(void)
printk
(
KERN_INFO
"%s"
,
version
);
printk
(
KERN_INFO
"%s"
,
version
);
}
}
static
int
__init
am79c961_probe
(
struct
device
*
_
dev
)
static
int
__init
am79c961_probe
(
struct
platform_device
*
p
dev
)
{
{
struct
platform_device
*
pdev
=
to_platform_device
(
_dev
);
struct
resource
*
res
;
struct
resource
*
res
;
struct
net_device
*
dev
;
struct
net_device
*
dev
;
struct
dev_priv
*
priv
;
struct
dev_priv
*
priv
;
...
@@ -758,15 +757,16 @@ out:
...
@@ -758,15 +757,16 @@ out:
return
ret
;
return
ret
;
}
}
static
struct
device_driver
am79c961_driver
=
{
static
struct
platform_driver
am79c961_driver
=
{
.
name
=
"am79c961"
,
.
bus
=
&
platform_bus_type
,
.
probe
=
am79c961_probe
,
.
probe
=
am79c961_probe
,
.
driver
=
{
.
name
=
"am79c961"
,
},
};
};
static
int
__init
am79c961_init
(
void
)
static
int
__init
am79c961_init
(
void
)
{
{
return
driver_register
(
&
am79c961_driver
);
return
platform_
driver_register
(
&
am79c961_driver
);
}
}
__initcall
(
am79c961_init
);
__initcall
(
am79c961_init
);
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