Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Convert i915_ge...
details: https://anonhg.NetBSD.org/src/rev/8c54e0f878e7
branches: riastradh-drm2
changeset: 788294:8c54e0f878e7
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:06:48 2013 +0000
description:
Convert i915_get_bridge_dev to use pci_kludgey_find_dev.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_dma.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 9f3e65b4bbd6 -r 8c54e0f878e7 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c Wed Jul 24 03:06:33 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c Wed Jul 24 03:06:48 2013 +0000
@@ -1160,7 +1160,11 @@
{
struct drm_i915_private *dev_priv = dev->dev_private;
+#ifdef __NetBSD__
+ dev_priv->bridge_dev = pci_kludgey_find_dev(dev->pdev, 0, 0, 0);
+#else
dev_priv->bridge_dev = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0));
+#endif
if (!dev_priv->bridge_dev) {
DRM_ERROR("bridge device not found\n");
return -1;
Home |
Main Index |
Thread Index |
Old Index