Skip to content

Commit

Permalink
drm/nouveau: remove duplicate copy of nv44_graph_class
Browse files Browse the repository at this point in the history
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ilia Mirkin authored and Ben Skeggs committed Sep 4, 2013
1 parent ef7d64e commit c98b819
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/nouveau/core/engine/graph/nv40.h
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down
10 changes: 2 additions & 8 deletions drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@
* 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,
Expand Down

0 comments on commit c98b819

Please sign in to comment.