diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2013-07-29 19:05:16 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-09-03 23:46:19 -0400 |
commit | c98b81946827fe04c36bfa6bb376ffa739b0c2d0 (patch) | |
tree | a3700deb1aa156b109e80d9cef0193cb7b8893c2 | |
parent | ef7d64e5c27bc2587b4a20c9ae04413ce679bd8c (diff) |
drm/nouveau: remove duplicate copy of nv44_graph_class
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/core/engine/graph/nv40.h | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c | 10 |
2 files changed, 5 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/nv40.h b/drivers/gpu/drm/nouveau/core/engine/graph/nv40.h index 7da35a4e7970..ad8209377529 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/nv40.h +++ b/drivers/gpu/drm/nouveau/core/engine/graph/nv40.h | |||
@@ -1,6 +1,9 @@ | |||
1 | #ifndef __NV40_GRAPH_H__ | 1 | #ifndef __NV40_GRAPH_H__ |
2 | #define __NV40_GRAPH_H__ | 2 | #define __NV40_GRAPH_H__ |
3 | 3 | ||
4 | #include <core/device.h> | ||
5 | #include <core/gpuobj.h> | ||
6 | |||
4 | /* returns 1 if device is one of the nv4x using the 0x4497 object class, | 7 | /* returns 1 if device is one of the nv4x using the 0x4497 object class, |
5 | * helpful to determine a number of other hardware features | 8 | * helpful to determine a number of other hardware features |
6 | */ | 9 | */ |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c b/drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c index 716bf41bc3c1..b10a143787a7 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c +++ b/drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c | |||
@@ -22,15 +22,9 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "nv04.h" | 25 | #include <engine/graph/nv40.h> |
26 | 26 | ||
27 | static inline int | 27 | #include "nv04.h" |
28 | nv44_graph_class(struct nv04_instmem_priv *priv) | ||
29 | { | ||
30 | if ((nv_device(priv)->chipset & 0xf0) == 0x60) | ||
31 | return 1; | ||
32 | return !(0x0baf & (1 << (nv_device(priv)->chipset & 0x0f))); | ||
33 | } | ||
34 | 28 | ||
35 | static int | 29 | static int |
36 | nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine, | 30 | nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine, |