diff options
| author | Michael Brown | 2005-04-13 01:24:39 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-13 01:24:39 +0200 |
| commit | bd9ae7cc7073cb17d51255c1b3b59def5843b170 (patch) | |
| tree | 415142c23bb18e9b1b27fe84cde0bb302eb4ed6c /src/drivers/net/3c90x.c | |
| parent | Minor regexp tweaks to catch degenerate cases. (diff) | |
| download | ipxe-bd9ae7cc7073cb17d51255c1b3b59def5843b170.tar.gz ipxe-bd9ae7cc7073cb17d51255c1b3b59def5843b170.tar.xz ipxe-bd9ae7cc7073cb17d51255c1b3b59def5843b170.zip | |
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/3c90x.c')
| -rw-r--r-- | src/drivers/net/3c90x.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/net/3c90x.c b/src/drivers/net/3c90x.c index 7919c9e5..1b100889 100644 --- a/src/drivers/net/3c90x.c +++ b/src/drivers/net/3c90x.c @@ -688,9 +688,11 @@ static void a3c90x_irq(struct nic *nic __unused, irq_action_t action __unused) *** initialization. If this routine is called, the pci functions did find the *** card. We just have to init it here. ***/ -static int a3c90x_probe(struct dev *dev, struct pci_device *pci) -{ - struct nic *nic = (struct nic *)dev; +static int a3c90x_probe ( struct dev *dev ) { + + struct nic *nic = nic_device ( dev ); + + struct pci_device *pci = pci_device ( dev ); int i, c; unsigned short eeprom[0x21]; unsigned int cfg; |
