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
9b01068c
Commit
9b01068c
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/wan/lmc/lmc_main.c
parent
0031442d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
drivers/net/wan/lmc/lmc_main.c
drivers/net/wan/lmc/lmc_main.c
+0
-8
drivers/net/wan/lmc/lmc_ver.h
drivers/net/wan/lmc/lmc_ver.h
+0
-2
No files found.
drivers/net/wan/lmc/lmc_main.c
View file @
9b01068c
...
@@ -1034,14 +1034,6 @@ int lmc_probe (struct net_device *dev) /*fold00*/
...
@@ -1034,14 +1034,6 @@ int lmc_probe (struct net_device *dev) /*fold00*/
u8
intcf
=
0
;
u8
intcf
=
0
;
struct
pci_dev
*
pdev
=
NULL
;
struct
pci_dev
*
pdev
=
NULL
;
/* The card is only available on PCI, so if we don't have a
* PCI bus, we are in trouble.
*/
if
(
!
pci_present
())
{
/* printk ("%s: We really want a pci bios!\n", dev->name);*/
return
-
1
;
}
/* Loop basically until we don't find anymore. */
/* Loop basically until we don't find anymore. */
while
((
pdev
=
pci_find_class
(
PCI_CLASS_NETWORK_ETHERNET
<<
8
,
pdev
)))
{
while
((
pdev
=
pci_find_class
(
PCI_CLASS_NETWORK_ETHERNET
<<
8
,
pdev
)))
{
if
(
pci_enable_device
(
pdev
))
if
(
pci_enable_device
(
pdev
))
...
...
drivers/net/wan/lmc/lmc_ver.h
View file @
9b01068c
...
@@ -69,12 +69,10 @@
...
@@ -69,12 +69,10 @@
#if LINUX_VERSION_CODE < 0x20155
/* basically 2.2 plus */
#if LINUX_VERSION_CODE < 0x20155
/* basically 2.2 plus */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb((skb), FREE_WRITE)
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb((skb), FREE_WRITE)
#define LMC_PCI_PRESENT() pcibios_present()
#else
/* Mostly 2.0 kernels */
#else
/* Mostly 2.0 kernels */
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb(skb)
#define LMC_DEV_KFREE_SKB(skb) dev_kfree_skb(skb)
#define LMC_PCI_PRESENT() pci_present()
#endif
#endif
...
...
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