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
d47490e2
Commit
d47490e2
authored
Sep 17, 2004
by
Jeff Garzik
Committed by
Linus Torvalds
Sep 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr eepro100] fix pci_iomap() args and info msg that follows
parent
57628874
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/net/eepro100.c
drivers/net/eepro100.c
+6
-6
No files found.
drivers/net/eepro100.c
View file @
d47490e2
...
...
@@ -546,9 +546,10 @@ static int __devinit eepro100_init_one (struct pci_dev *pdev,
const
struct
pci_device_id
*
ent
)
{
void
__iomem
*
ioaddr
;
int
irq
;
int
irq
,
pci_bar
;
int
acpi_idle_state
=
0
,
pm
;
static
int
cards_found
/* = 0 */
;
unsigned
long
pci_base
;
#ifndef MODULE
/* when built-in, we only print version if device is found */
...
...
@@ -582,14 +583,13 @@ static int __devinit eepro100_init_one (struct pci_dev *pdev,
}
irq
=
pdev
->
irq
;
if
(
use_io
)
ioaddr
=
pci_iomap
(
pdev
,
1
,
pci_resource_len
(
pdev
,
1
));
else
ioaddr
=
pci_iomap
(
pdev
,
0
,
pci_resource_len
(
pdev
,
0
));
pci_bar
=
use_io
?
1
:
0
;
pci_base
=
pci_resource_start
(
pdev
,
pci_bar
);
if
(
DEBUG
&
NETIF_MSG_PROBE
)
printk
(
"Found Intel i82557 PCI Speedo at %#lx, IRQ %d.
\n
"
,
pci_resource_start
(
pdev
,
1
)
,
irq
);
pci_base
,
irq
);
ioaddr
=
pci_iomap
(
pdev
,
pci_bar
,
0
);
if
(
!
ioaddr
)
{
printk
(
KERN_ERR
"eepro100: cannot remap IO
\n
"
);
goto
err_out_free_mmio_region
;
...
...
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