Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Network Interface Card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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 Network Interface Card
Commits
d33c1830
Commit
d33c1830
authored
Apr 04, 2019
by
Miguel Jimenez Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify the wrn_from_pdev function for nodes and switches.
parent
85b98abb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
device.c
sw/kernel/device.c
+0
-10
No files found.
sw/kernel/device.c
View file @
d33c1830
...
@@ -32,20 +32,10 @@
...
@@ -32,20 +32,10 @@
*/
*/
static
const
char
*
irqdomain_name
=
"htvic-wr-swi.0"
;
static
const
char
*
irqdomain_name
=
"htvic-wr-swi.0"
;
#if WR_IS_NODE
/* Our platform_data is different in node vs switch */
#include "../spec-nic.h"
static
inline
struct
wrn_dev
*
wrn_from_pdev
(
struct
platform_device
*
pdev
)
{
struct
wrn_drvdata
*
drvdata
=
pdev
->
dev
.
platform_data
;
return
drvdata
->
wrn
;
}
#else
/* WR_IS_SWITCH */
static
inline
struct
wrn_dev
*
wrn_from_pdev
(
struct
platform_device
*
pdev
)
static
inline
struct
wrn_dev
*
wrn_from_pdev
(
struct
platform_device
*
pdev
)
{
{
return
pdev
->
dev
.
platform_data
;
return
pdev
->
dev
.
platform_data
;
}
}
#endif
/* The remove function is used by probe, so it's not __devexit */
/* The remove function is used by probe, so it's not __devexit */
static
int
wrn_remove
(
struct
platform_device
*
pdev
)
static
int
wrn_remove
(
struct
platform_device
*
pdev
)
...
...
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