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
513f042e
Commit
513f042e
authored
Apr 19, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Call SET_NETDEV_DEV() in a bunch of net drivers
Used for sysfs support.
parent
ece91eb2
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
25 additions
and
1 deletion
+25
-1
drivers/net/3c509.c
drivers/net/3c509.c
+1
-0
drivers/net/3c515.c
drivers/net/3c515.c
+1
-0
drivers/net/amd8111e.c
drivers/net/amd8111e.c
+1
-0
drivers/net/irda/donauboe.c
drivers/net/irda/donauboe.c
+1
-0
drivers/net/irda/vlsi_ir.c
drivers/net/irda/vlsi_ir.c
+2
-0
drivers/net/saa9730.c
drivers/net/saa9730.c
+1
-0
drivers/net/sk98lin/skge.c
drivers/net/sk98lin/skge.c
+1
-0
drivers/net/tc35815.c
drivers/net/tc35815.c
+1
-0
drivers/net/tokenring/3c359.c
drivers/net/tokenring/3c359.c
+1
-0
drivers/net/tokenring/abyss.c
drivers/net/tokenring/abyss.c
+1
-0
drivers/net/tokenring/lanstreamer.c
drivers/net/tokenring/lanstreamer.c
+1
-0
drivers/net/tokenring/olympic.c
drivers/net/tokenring/olympic.c
+1
-0
drivers/net/tokenring/tmspci.c
drivers/net/tokenring/tmspci.c
+1
-0
drivers/net/wan/sbni.c
drivers/net/wan/sbni.c
+3
-1
drivers/net/wireless/airo.c
drivers/net/wireless/airo.c
+5
-0
drivers/net/wireless/orinoco_pci.c
drivers/net/wireless/orinoco_pci.c
+1
-0
drivers/net/wireless/orinoco_plx.c
drivers/net/wireless/orinoco_plx.c
+1
-0
drivers/net/wireless/orinoco_tmd.c
drivers/net/wireless/orinoco_tmd.c
+1
-0
No files found.
drivers/net/3c509.c
View file @
513f042e
...
...
@@ -426,6 +426,7 @@ static int __init el3_probe(int card_idx)
}
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
idev
->
dev
);
pnp_cards
++
;
netdev_boot_setup_check
(
dev
);
...
...
drivers/net/3c515.c
View file @
513f042e
...
...
@@ -538,6 +538,7 @@ static struct net_device *corkscrew_scan(int unit)
inl
(
ioaddr
+
0x2002
),
inw
(
ioaddr
+
0x2000
));
/* irq = inw(ioaddr + 0x2002) & 15; */
/* Use the irq from isapnp */
corkscrew_setup
(
dev
,
ioaddr
,
idev
,
cards_found
++
);
SET_NETDEV_DEV
(
dev
,
&
idev
->
dev
);
pnp_cards
++
;
err
=
register_netdev
(
dev
);
if
(
!
err
)
...
...
drivers/net/amd8111e.c
View file @
513f042e
...
...
@@ -2036,6 +2036,7 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
}
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
#if AMD8111E_VLAN_TAG_USED
dev
->
features
|=
NETIF_F_HW_VLAN_TX
|
NETIF_F_HW_VLAN_RX
;
...
...
drivers/net/irda/donauboe.c
View file @
513f042e
...
...
@@ -1668,6 +1668,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
#endif
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pci_dev
->
dev
);
dev
->
hard_start_xmit
=
toshoboe_hard_xmit
;
dev
->
open
=
toshoboe_net_open
;
dev
->
stop
=
toshoboe_net_close
;
...
...
drivers/net/irda/vlsi_ir.c
View file @
513f042e
...
...
@@ -1622,6 +1622,8 @@ static int vlsi_irda_init(struct net_device *ndev)
ndev
->
tx_timeout
=
vlsi_tx_timeout
;
ndev
->
watchdog_timeo
=
500
*
HZ
/
1000
;
/* max. allowed turn time for IrLAP */
SET_NETDEV_DEV
(
ndev
,
&
pdev
->
dev
);
return
0
;
}
...
...
drivers/net/saa9730.c
View file @
513f042e
...
...
@@ -1146,6 +1146,7 @@ static int __devinit saa9730_init_one(struct pci_dev *pdev, const struct pci_dev
}
pci_set_drvdata
(
pdev
,
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
return
0
;
out2:
...
...
drivers/net/sk98lin/skge.c
View file @
513f042e
...
...
@@ -382,6 +382,7 @@ static int __init skge_probe (void)
dev
->
do_ioctl
=
&
SkGeIoctl
;
dev
->
change_mtu
=
&
SkGeChangeMtu
;
dev
->
flags
&=
~
IFF_RUNNING
;
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
#ifdef SK_ZEROCOPY
#ifdef USE_SK_TX_CHECKSUM
...
...
drivers/net/tc35815.c
View file @
513f042e
...
...
@@ -597,6 +597,7 @@ static int __devinit tc35815_probe1(struct pci_dev *pdev, unsigned int base_addr
dev
->
get_stats
=
tc35815_get_stats
;
dev
->
set_multicast_list
=
tc35815_set_multicast_list
;
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
ret
=
register_netdev
(
dev
);
if
(
ret
)
...
...
drivers/net/tokenring/3c359.c
View file @
513f042e
...
...
@@ -345,6 +345,7 @@ int __devinit xl_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
dev
->
get_stats
=&
xl_get_stats
;
dev
->
set_mac_address
=&
xl_set_mac_address
;
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
pci_set_drvdata
(
pdev
,
dev
)
;
if
((
i
=
register_netdev
(
dev
)))
{
...
...
drivers/net/tokenring/abyss.c
View file @
513f042e
...
...
@@ -167,6 +167,7 @@ static int __devinit abyss_attach(struct pci_dev *pdev, const struct pci_device_
dev
->
stop
=
abyss_close
;
pci_set_drvdata
(
pdev
,
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
ret
=
register_netdev
(
dev
);
if
(
ret
)
...
...
drivers/net/tokenring/lanstreamer.c
View file @
513f042e
...
...
@@ -332,6 +332,7 @@ static int __devinit streamer_init_one(struct pci_dev *pdev,
dev
->
set_mac_address
=
&
streamer_set_mac_address
;
dev
->
irq
=
pdev
->
irq
;
dev
->
base_addr
=
pio_start
;
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
streamer_priv
->
streamer_card_name
=
(
char
*
)
pdev
->
resource
[
0
].
name
;
streamer_priv
->
pci_dev
=
pdev
;
...
...
drivers/net/tokenring/olympic.c
View file @
513f042e
...
...
@@ -259,6 +259,7 @@ static int __devinit olympic_probe(struct pci_dev *pdev, const struct pci_device
dev
->
get_stats
=&
olympic_get_stats
;
dev
->
set_mac_address
=&
olympic_set_mac_address
;
SET_MODULE_OWNER
(
dev
)
;
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
pci_set_drvdata
(
pdev
,
dev
)
;
register_netdev
(
dev
)
;
...
...
drivers/net/tokenring/tmspci.c
View file @
513f042e
...
...
@@ -164,6 +164,7 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic
dev
->
open
=
tms380tr_open
;
dev
->
stop
=
tms380tr_close
;
pci_set_drvdata
(
pdev
,
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
ret
=
register_netdev
(
dev
);
if
(
ret
)
...
...
drivers/net/wan/sbni.c
View file @
513f042e
...
...
@@ -333,8 +333,10 @@ sbni_pci_probe( struct net_device *dev )
release_region
(
pci_ioaddr
,
SBNI_IO_EXTENT
);
return
-
EIO
;
}
if
(
sbni_probe1
(
dev
,
pci_ioaddr
,
pci_irq_line
)
)
if
(
sbni_probe1
(
dev
,
pci_ioaddr
,
pci_irq_line
)
)
{
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
return
0
;
}
}
return
-
ENODEV
;
}
...
...
drivers/net/wireless/airo.c
View file @
513f042e
...
...
@@ -2732,6 +2732,11 @@ struct net_device *_init_airo_card( unsigned short irq, int port,
dev
->
irq
=
irq
;
dev
->
base_addr
=
port
;
/* what is with PCMCIA ??? */
if
(
pci
)
{
SET_NETDEV_DEV
(
dev
,
&
pci
->
dev
);
}
if
(
test_bit
(
FLAG_MPI
,
&
ai
->
flags
))
reset_mpi_card
(
dev
,
1
);
...
...
drivers/net/wireless/orinoco_pci.c
View file @
513f042e
...
...
@@ -220,6 +220,7 @@ static int orinoco_pci_init_one(struct pci_dev *pdev,
dev
->
mem_end
=
pci_iorange
+
pci_iolen
-
1
;
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
printk
(
KERN_DEBUG
"Detected Orinoco/Prism2 PCI device at %s, mem:0x%lX to 0x%lX -> 0x%p, irq:%d
\n
"
,
...
...
drivers/net/wireless/orinoco_plx.c
View file @
513f042e
...
...
@@ -233,6 +233,7 @@ static int orinoco_plx_init_one(struct pci_dev *pdev,
priv
=
dev
->
priv
;
dev
->
base_addr
=
pccard_ioaddr
;
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
printk
(
KERN_DEBUG
"Detected Orinoco/Prism2 PLX device at %s irq:%d, io addr:0x%lx
\n
"
,
...
...
drivers/net/wireless/orinoco_tmd.c
View file @
513f042e
...
...
@@ -125,6 +125,7 @@ static int orinoco_tmd_init_one(struct pci_dev *pdev,
priv
=
dev
->
priv
;
dev
->
base_addr
=
pccard_ioaddr
;
SET_MODULE_OWNER
(
dev
);
SET_NETDEV_DEV
(
dev
,
&
pdev
->
dev
);
printk
(
KERN_DEBUG
"Detected Orinoco/Prism2 TMD device at %s irq:%d, io addr:0x%lx
\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