PERFORCE change 1207528 for review
John-Mark Gurney
jmg at FreeBSD.org
Mon Mar 23 06:17:16 UTC 2015
http://p4web.freebsd.org/@@1207528?ac=10
Change 1207528 by jmg at jmg_pciehp on 2015/03/23 06:16:43
This gets pciehp working again.. turns out that you call pcib_
functions on the bus, which is dev here, not on the pcib device...
You are accessing the parent's ivars, which here, pcib is the
parent.. This means I can push stuff down again..
Sponsored by: The FreeBSD Foundation
Affected files ...
.. //depot/projects/pciehotplug/sys/dev/pci/pci.c#6 edit
Differences ...
==== //depot/projects/pciehotplug/sys/dev/pci/pci.c#6 (text+ko) ====
@@ -3517,8 +3517,8 @@
int first_func;
pcib = device_get_parent(dev);
- domain = pcib_get_domain(pcib);
- busno = pcib_get_bus(pcib);
+ domain = pcib_get_domain(dev);
+ busno = pcib_get_bus(dev);
/*
* Try to detect a device at slot 0, function 0. If it exists, try to
More information about the p4-projects
mailing list