Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
19ecb6ba
Commit
19ecb6ba
authored
Nov 03, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
niu: Use pci_ioremap_bar().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
ca8eac55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
drivers/net/niu.c
drivers/net/niu.c
+1
-5
No files found.
drivers/net/niu.c
View file @
19ecb6ba
...
...
@@ -8667,7 +8667,6 @@ static void __devinit niu_device_announce(struct niu *np)
static
int
__devinit
niu_pci_init_one
(
struct
pci_dev
*
pdev
,
const
struct
pci_device_id
*
ent
)
{
unsigned
long
niureg_base
,
niureg_len
;
union
niu_parent_id
parent_id
;
struct
net_device
*
dev
;
struct
niu
*
np
;
...
...
@@ -8758,10 +8757,7 @@ static int __devinit niu_pci_init_one(struct pci_dev *pdev,
dev
->
features
|=
(
NETIF_F_SG
|
NETIF_F_HW_CSUM
);
niureg_base
=
pci_resource_start
(
pdev
,
0
);
niureg_len
=
pci_resource_len
(
pdev
,
0
);
np
->
regs
=
ioremap_nocache
(
niureg_base
,
niureg_len
);
np
->
regs
=
pci_ioremap_bar
(
pdev
,
0
);
if
(
!
np
->
regs
)
{
dev_err
(
&
pdev
->
dev
,
PFX
"Cannot map device registers, "
"aborting.
\n
"
);
...
...
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