PERFORCE change 97554 for review
John-Mark Gurney
jmg at FreeBSD.org
Sun May 21 06:04:09 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=97554
Change 97554 by jmg at jmg_carbon-60 on 2006/05/21 06:02:36
use function to get the parent instead of knowing what a device_t
looks like...
Affected files ...
.. //depot/projects/kmacy_sun4v/src/sys/kern/subr_bus.c#5 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/sys/kern/subr_bus.c#5 (text+ko) ====
@@ -3624,10 +3624,12 @@
bus_dma_tag_t
bus_get_dma_tag(device_t dev)
{
+ device_t parent;
- if (dev->parent == NULL)
+ parent = device_get_parent(child);
+ if (parent == NULL)
return (NULL);
- return (BUS_GET_DMA_TAG(dev->parent, dev));
+ return (BUS_GET_DMA_TAG(parent, dev));
}
/* Resume all devices and then notify userland that we're up again. */
More information about the p4-projects
mailing list