From e3ad18036b4dca29744ecfa4694006f01dd3fd18 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 3 Sep 2012 20:53:30 +0100 Subject: sna: Enable platform probing Completing commit 0768ac4d195214825137152893deb74a87fcd11e Author: Dave Airlie Date: Wed Jul 25 16:11:23 2012 +1000 intel: add platform probing support. Signed-off-by: Chris Wilson --- src/sna/sna_driver.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index a0beb4cf..2eab460b 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -371,7 +371,14 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int flags) return FALSE; pEnt = xf86GetEntityInfo(scrn->entityList[0]); - if (pEnt == NULL || pEnt->location.type != BUS_PCI) + if (pEnt == NULL) + return FALSE; + + if (pEnt->location.type != BUS_PCI +#ifdef XSERVER_PLATFORM_BUS + && pEnt->location.type != BUS_PLATFORM +#endif + ) return FALSE; if (flags & PROBE_DETECT) -- cgit v1.2.3