aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/pci
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>1999-12-03 08:41:24 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>1999-12-03 08:41:24 +0000
commitfe0d408987b42b531420ff2de76d534dbe7ecee7 (patch)
tree6196b778a0e888c9c44157e090059018b00a3080 /sys/amd64/pci
parentb06e7af6ddadc3933a558d3e3ab7c76125611445 (diff)
downloadsrc-fe0d408987b42b531420ff2de76d534dbe7ecee7.tar.gz
src-fe0d408987b42b531420ff2de76d534dbe7ecee7.zip
Remove the 'ivars' arguement to device_add_child() and
device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
Notes
Notes: svn path=/head/; revision=54073
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r--sys/amd64/pci/pci_bus.c2
-rw-r--r--sys/amd64/pci/pci_cfgreg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c
index a640e141b3d9..609d41647d4a 100644
--- a/sys/amd64/pci/pci_bus.c
+++ b/sys/amd64/pci/pci_bus.c
@@ -478,7 +478,7 @@ static int
nexus_pcib_probe(device_t dev)
{
if (pci_cfgopen() != 0) {
- device_add_child(dev, "pci", device_get_unit(dev), 0);
+ device_add_child(dev, "pci", device_get_unit(dev));
return 0;
}
return ENXIO;
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c
index a640e141b3d9..609d41647d4a 100644
--- a/sys/amd64/pci/pci_cfgreg.c
+++ b/sys/amd64/pci/pci_cfgreg.c
@@ -478,7 +478,7 @@ static int
nexus_pcib_probe(device_t dev)
{
if (pci_cfgopen() != 0) {
- device_add_child(dev, "pci", device_get_unit(dev), 0);
+ device_add_child(dev, "pci", device_get_unit(dev));
return 0;
}
return ENXIO;