summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/pcnet32.c
diff options
context:
space:
mode:
authorMichael Brown2011-02-12 02:11:57 +0100
committerMichael Brown2011-02-17 02:25:12 +0100
commit5bde349e55640b2d21fbe0f4f53edabe6878eb91 (patch)
tree6e99ca19a9ebfe68ddb06f353d06154651d1f635 /src/drivers/net/pcnet32.c
parent[pci] Replace pci_max_bus() with pci_num_bus() (diff)
downloadipxe-5bde349e55640b2d21fbe0f4f53edabe6878eb91.tar.gz
ipxe-5bde349e55640b2d21fbe0f4f53edabe6878eb91.tar.xz
ipxe-5bde349e55640b2d21fbe0f4f53edabe6878eb91.zip
[pci] Make driver PCI ID a property of the PCI device
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/pcnet32.c')
-rw-r--r--src/drivers/net/pcnet32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/net/pcnet32.c b/src/drivers/net/pcnet32.c
index e957ad9b..d6da3c5e 100644
--- a/src/drivers/net/pcnet32.c
+++ b/src/drivers/net/pcnet32.c
@@ -1034,7 +1034,7 @@ static struct net_device_operations pcnet32_operations = {
* @ret rc Return status code
**/
static int
-pcnet32_probe ( struct pci_device *pdev, const struct pci_device_id *ent )
+pcnet32_probe ( struct pci_device *pdev )
{
struct net_device *netdev;
struct pcnet32_private *priv;
@@ -1044,7 +1044,7 @@ pcnet32_probe ( struct pci_device *pdev, const struct pci_device_id *ent )
DBGP ( "pcnet32_probe\n" );
DBG ( "Found %s, vendor = %#04x, device = %#04x\n",
- pdev->driver_name, ent->vendor, ent->device );
+ pdev->id->name, pdev->id->vendor, pdev->id->device );
/* Allocate our private data */
netdev = alloc_etherdev ( sizeof ( *priv ) );