Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
ad7ed061
Commit
ad7ed061
authored
Jan 18, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel modules: fix wr_nic address setup code
parent
53e2b3f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
device.c
kernel/wr_nic/device.c
+2
-0
module.c
kernel/wr_nic/module.c
+4
-4
No files found.
kernel/wr_nic/device.c
View file @
ad7ed061
...
...
@@ -74,6 +74,8 @@ static int __devinit __wrn_map_resources(struct platform_device *pdev)
* We don't populate the whole array, but use the resource list
*/
while
(
(
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
i
))
)
{
if
(
!
res
->
start
)
continue
;
ptr
=
ioremap
(
res
->
start
,
res
->
end
+
1
-
res
->
start
);
if
(
!
ptr
)
{
dev_err
(
&
pdev
->
dev
,
"Remap for res %i (%08x) failed
\n
"
,
...
...
kernel/wr_nic/module.c
View file @
ad7ed061
...
...
@@ -31,10 +31,10 @@ static struct wrn_dev wrn_dev;
/* Not all the blocks are relevant to this driver, only list the used ones */
static
struct
resource
wrn_resources
[]
=
{
__RES
(
NIC
),
__RES
(
EP
),
__RES
(
TS
),
__RES
(
PPSG
),
[
WRN_FB_NIC
]
=
__RES
(
NIC
),
[
WRN_FB_EP
]
=
__RES
(
EP
),
[
WRN_FB_TS
]
=
__RES
(
TS
),
[
WRN_FB_PPSG
]
=
__RES
(
PPSG
),
};
#undef __RES
...
...
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