summaryrefslogtreecommitdiffstats
path: root/src/include/nic.h
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/include/nic.h
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/include/nic.h')
-rw-r--r--src/include/nic.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/nic.h b/src/include/nic.h
index d5375bd6..9aaede8a 100644
--- a/src/include/nic.h
+++ b/src/include/nic.h
@@ -85,8 +85,7 @@ void legacy_remove ( void *hwdev,
#define PCI_DRIVER(_name,_ids,_class) \
static inline int \
- _name ## _pci_legacy_probe ( struct pci_device *pci, \
- const struct pci_device_id *id ); \
+ _name ## _pci_legacy_probe ( struct pci_device *pci ); \
static inline void \
_name ## _pci_legacy_remove ( struct pci_device *pci ); \
struct pci_driver _name __pci_driver = { \
@@ -211,8 +210,7 @@ static inline void * legacy_isa_get_drvdata ( void *hwdev ) {
_unsafe_disable ( nic, hwdev ); \
} \
static inline int \
- _name ## _pci_legacy_probe ( struct pci_device *pci, \
- const struct pci_device_id *id __unused ) { \
+ _name ## _pci_legacy_probe ( struct pci_device *pci ) { \
return legacy_probe ( pci, legacy_pci_set_drvdata, \
&pci->dev, _name ## _probe, \
_name ## _disable ); \