summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/savage/savage_drv.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2019-06-05 16:03:13 +0200
committerSam Ravnborg <sam@ravnborg.org>2019-06-05 20:30:50 +0200
commit87158992d39adca39dcff7a224aaaed4e6aff276 (patch)
treee31a7686a3ca04353c7df4f36e5407f07a6cf915 /drivers/gpu/drm/savage/savage_drv.h
parent1b36d506fc82c7615852eca149c6a533a5260a00 (diff)
downloadlinux-next-87158992d39adca39dcff7a224aaaed4e6aff276.tar.gz
drm/savage: drop use of drm_os_linux
Drop use of macros from the deprecated drm_os_linux header. Simple 1:1 replacements of - DRM_UDELAY - DRM_CURRENTPID - DRM_READ - DRM_WRITE With this change we do not need to introduce the deprecated drm_os_linux.h header when we drop use of drmP.h. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Daniel Vetter <daniel@ffwll.ch> Cc: David Airlie <airlied@linux.ie> Link: https://patchwork.freedesktop.org/patch/msgid/20190605140313.13629-2-sam@ravnborg.org
Diffstat (limited to 'drivers/gpu/drm/savage/savage_drv.h')
-rw-r--r--drivers/gpu/drm/savage/savage_drv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/savage/savage_drv.h b/drivers/gpu/drm/savage/savage_drv.h
index 44a1009b6ecb..38aab625f12e 100644
--- a/drivers/gpu/drm/savage/savage_drv.h
+++ b/drivers/gpu/drm/savage/savage_drv.h
@@ -484,8 +484,10 @@ extern void savage_emit_clip_rect_s4(drm_savage_private_t * dev_priv,
/*
* access to MMIO
*/
-#define SAVAGE_READ(reg) DRM_READ32( dev_priv->mmio, (reg) )
-#define SAVAGE_WRITE(reg) DRM_WRITE32( dev_priv->mmio, (reg) )
+#define SAVAGE_READ(reg) \
+ readl(((void __iomem *)dev_priv->mmio->handle) + (reg))
+#define SAVAGE_WRITE(reg) \
+ writel(val, ((void __iomem *)dev_priv->mmio->handle) + (reg))
/*
* access to the burst command interface (BCI)