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
nexedi
linux
Commits
917b32b2
Commit
917b32b2
authored
Jun 09, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: remove pci_present() from drivers/net/saa9730.c
parent
f7ed0c8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
drivers/net/saa9730.c
drivers/net/saa9730.c
+19
-20
No files found.
drivers/net/saa9730.c
View file @
917b32b2
...
@@ -1050,31 +1050,30 @@ static int lan_saa9730_init(struct net_device *dev, int ioaddr, int irq)
...
@@ -1050,31 +1050,30 @@ static int lan_saa9730_init(struct net_device *dev, int ioaddr, int irq)
static
int
__init
saa9730_probe
(
void
)
static
int
__init
saa9730_probe
(
void
)
{
{
struct
net_device
*
dev
=
NULL
;
struct
net_device
*
dev
=
NULL
;
struct
pci_dev
*
pdev
=
NULL
;
if
(
pci_present
())
{
if
(
lan_saa9730_debug
>
1
)
struct
pci_dev
*
pdev
=
NULL
;
printk
if
(
lan_saa9730_debug
>
1
)
(
"saa9730.c: PCI bios is present, checking for devices...
\n
"
);
printk
(
"saa9730.c: PCI bios is present, checking for devices...
\n
"
);
while
((
pdev
=
pci_find_device
(
PCI_VENDOR_ID_PHILIPS
,
while
((
pdev
=
pci_find_device
(
PCI_VENDOR_ID_PHILIPS
,
PCI_DEVICE_ID_PHILIPS_SAA9730
,
PCI_DEVICE_ID_PHILIPS_SAA9730
,
pdev
)))
{
pdev
)))
{
unsigned
int
pci_ioaddr
;
unsigned
int
pci_ioaddr
;
pci_irq_line
=
pdev
->
irq
;
pci_irq_line
=
pdev
->
irq
;
/* LAN base address in located at BAR 1. */
/* LAN base address in located at BAR 1. */
pci_ioaddr
=
pci_resource_start
(
pdev
,
1
);
pci_ioaddr
=
pci_resource_start
(
pdev
,
1
);
pci_set_master
(
pdev
);
pci_set_master
(
pdev
);
printk
(
"Found SAA9730 (PCI) at %#x, irq %d.
\n
"
,
printk
(
"Found SAA9730 (PCI) at %#x, irq %d.
\n
"
,
pci_ioaddr
,
pci_irq_line
);
pci_ioaddr
,
pci_irq_line
);
if
(
!
lan_saa9730_init
if
(
!
lan_saa9730_init
(
dev
,
pci_ioaddr
,
pci_irq_line
))
return
0
;
(
dev
,
pci_ioaddr
,
pci_irq_line
))
else
return
0
;
printk
(
"Lan init failed.
\n
"
);
else
}
printk
(
"Lan init failed.
\n
"
);
}
}
return
-
ENODEV
;
return
-
ENODEV
;
...
...
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