summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2007-09-21 22:27:53 +0200
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2007-09-21 22:27:53 +0200
commitdc60c452e6ac72ebc4e5c73153d4d9d8c9edfae5 (patch)
tree9d23c65cfb7565086c76286c377e14d3c0e308ea /shared-core
parent74c6f2f47a9977fef8fcc7c698862d5bd2f54336 (diff)
nouveau: fix notifiers on PPC.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_notifier.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared-core/nouveau_notifier.c b/shared-core/nouveau_notifier.c
index 71b8cbe1..fbd4b56f 100644
--- a/shared-core/nouveau_notifier.c
+++ b/shared-core/nouveau_notifier.c
@@ -37,9 +37,12 @@ nouveau_notifier_init_channel(struct nouveau_channel *chan)
int flags, ret;
/*TODO: PCI notifier blocks */
+#if defined(__powerpc__)
if (dev_priv->agp_heap)
flags = NOUVEAU_MEM_AGP;
- else if (dev_priv->pci_heap)
+ else
+#endif
+ if (dev_priv->pci_heap)
flags = NOUVEAU_MEM_PCI;
else
flags = NOUVEAU_MEM_FB;