[PATCH 3/7] DRM: correct PCI domain setting for ALPHA

From: Ivan Kokshaysky
Date: Wed Apr 11 2007 - 04:54:33 EST


Files:

drivers/char/drm/drmP.h

The PCI domain is the hose's index, not the hose's root bus number.
Note that this code only applies to ALPHA.


Signed-off-by: Jay Estabrook <jay.estabrook@xxxxxx>
Signed-off-by: Ivan Kokshaysky <ink@xxxxxxxxxxxxxxxxxxxx>

---

diff -Naurp a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
--- a/drivers/char/drm/drmP.h 2007-04-02 13:03:24.000000000 -0400
+++ b/drivers/char/drm/drmP.h 2007-04-02 13:49:38.000000000 -0400
@@ -764,7 +764,7 @@ static __inline__ int drm_core_check_fea
}

#ifdef __alpha__
-#define drm_get_pci_domain(dev) dev->hose->bus->number
+#define drm_get_pci_domain(dev) dev->hose->index
#else
#define drm_get_pci_domain(dev) 0
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/