summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-05-03 09:54:44 +0100
committerDave Airlie <airlied@redhat.com>2012-05-03 09:54:44 +0100
commit812609a7041a7f55023f704211c10364614c3270 (patch)
treeb9a3bd81933c6f9e350c327c822aeb136bb6d1bd
parent89a2627052f5d5c5ab4e7f53c77a789ef9459722 (diff)
nouveau: accept udev devices
-rw-r--r--src/nv_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 81358db..a6b3aa0 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -97,7 +97,7 @@ NVUdevProbe(DriverPtr driver,
int entity_num, struct xf86_udev_device *dev, intptr_t dev_match_data)
{
ScrnInfoPtr scrn = NULL;
- if (dev->pdev)
+ if (!dev->pdev)
return FALSE;
scrn = xf86AllocateGPUScreen(driver, 0);
@@ -709,7 +709,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
/* Get the entity, and make sure it is PCI. */
pNv->pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
- if (pNv->pEnt->location.type != BUS_PCI)
+ if (pNv->pEnt->location.type != BUS_PCI && pNv->pEnt->location.type != BUS_UDEV)
return FALSE;
if (xf86IsEntityShared(pScrn->entityList[0])) {