drm/nouveau: remove duplicate copy of nv44_graph_class
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 29 Jul 2013 23:05:16 +0000 (19:05 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 4 Sep 2013 03:46:19 +0000 (13:46 +1000)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/nv40.h
drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c

index 7da35a4e7970d1684433f3fd036c60492a5ddb0d..ad8209377529d7ca568adc7e7b274adec286a2cb 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef __NV40_GRAPH_H__
 #define __NV40_GRAPH_H__
 
+#include <core/device.h>
+#include <core/gpuobj.h>
+
 /* returns 1 if device is one of the nv4x using the 0x4497 object class,
  * helpful to determine a number of other hardware features
  */
index 716bf41bc3c107041f2b327e52943c873c735d42..b10a143787a7af95af24475f78fa52de7c7a641f 100644 (file)
  * Authors: Ben Skeggs
  */
 
-#include "nv04.h"
+#include <engine/graph/nv40.h>
 
-static inline int
-nv44_graph_class(struct nv04_instmem_priv *priv)
-{
-       if ((nv_device(priv)->chipset & 0xf0) == 0x60)
-               return 1;
-       return !(0x0baf & (1 << (nv_device(priv)->chipset & 0x0f)));
-}
+#include "nv04.h"
 
 static int
 nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,