Displaying 1 result from an estimated 1 matches for "evo_object".
2012 Aug 19
1
[PATCH 09/10] drm/nv50/evo: store iomem pointer in properly typed field
...tions(-)
diff --git a/drivers/gpu/drm/nouveau/nv50_evo.c b/drivers/gpu/drm/nouveau/nv50_evo.c
index 0f53416..0483cbd 100644
--- a/drivers/gpu/drm/nouveau/nv50_evo.c
+++ b/drivers/gpu/drm/nouveau/nv50_evo.c
@@ -33,17 +33,22 @@
#include <subdev/timer.h>
#include <subdev/fb.h>
+struct evo_object {
+ struct nouveau_object parent;
+ void __iomem *iomem;
+};
+
static u32
nv50_evo_rd32(struct nouveau_object *object, u32 addr)
{
- void __iomem *iomem = object->oclass->ofuncs->rd08;
+ void __iomem *iomem = ((struct evo_object *)object)->iomem;
return ioread32_native(iomem + addr...