summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_notifier.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/shared-core/nouveau_notifier.c b/shared-core/nouveau_notifier.c
index d3b79683..c361bc69 100644
--- a/shared-core/nouveau_notifier.c
+++ b/shared-core/nouveau_notifier.c
@@ -36,17 +36,8 @@ nouveau_notifier_init_channel(struct nouveau_channel *chan)
struct drm_nouveau_private *dev_priv = dev->dev_private;
int flags, ret;
- /*TODO: PCI notifier blocks */
-#ifndef __powerpc__
- if (dev_priv->agp_heap)
- flags = NOUVEAU_MEM_AGP;
- else
-#endif
- if (dev_priv->pci_heap)
- flags = NOUVEAU_MEM_PCI;
- else
- flags = NOUVEAU_MEM_FB;
- flags |= (NOUVEAU_MEM_MAPPED | NOUVEAU_MEM_FB_ACCEPTABLE);
+ flags = (NOUVEAU_MEM_PCI | NOUVEAU_MEM_MAPPED |
+ NOUVEAU_MEM_FB_ACCEPTABLE);
chan->notifier_block = nouveau_mem_alloc(dev, 0, PAGE_SIZE, flags,
(struct drm_file *)-2);