diff options
author | Michael Brown <mcb30@etherboot.org> | 2005-04-12 23:24:39 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2005-04-12 23:24:39 +0000 |
commit | bd9ae7cc7073cb17d51255c1b3b59def5843b170 (patch) | |
tree | 415142c23bb18e9b1b27fe84cde0bb302eb4ed6c /src/drivers/net/pcnet32.c | |
parent | 35e6f3e58abd8addc19113f7e00e3cafea315846 (diff) | |
download | ipxe-bd9ae7cc7073cb17d51255c1b3b59def5843b170.tar.gz |
Automatically updated using
perl -pi -0777 -e 's/_probe\s*\(\s*struct dev \*dev,\s*struct pci_device \*(\w+?)\s*\)\s*{(\s*)struct nic \*nic.*?$/_probe ( struct dev *dev ) {\n${2}struct nic *nic = nic_device ( dev );\n${2}struct pci_device *$1 = pci_device ( dev );/ms' *.c
Diffstat (limited to 'src/drivers/net/pcnet32.c')
-rw-r--r-- | src/drivers/net/pcnet32.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/net/pcnet32.c b/src/drivers/net/pcnet32.c index 27470339..24425aab 100644 --- a/src/drivers/net/pcnet32.c +++ b/src/drivers/net/pcnet32.c @@ -665,9 +665,11 @@ static void pcnet32_irq(struct nic *nic __unused, irq_action_t action __unused) PROBE - Look for an adapter, this routine's visible to the outside You should omit the last argument struct pci_device * for a non-PCI NIC ***************************************************************************/ -static int pcnet32_probe(struct dev *dev, struct pci_device *pci) -{ - struct nic *nic = (struct nic *) dev; +static int pcnet32_probe ( struct dev *dev ) { + + struct nic *nic = nic_device ( dev ); + + struct pci_device *pci = pci_device ( dev ); int i, media; int fdx, mii, fset, dxsuflo, ltint; int chip_version; |