diff options
Diffstat (limited to 'bsd-core')
-rw-r--r-- | bsd-core/drmP.h | 6 | ||||
-rw-r--r-- | bsd-core/drm_bufs.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index e8720395..94a5710c 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -101,13 +101,13 @@ typedef struct drm_file drm_file_t; #define DRM_MAX_CTXBITMAP (PAGE_SIZE * 8) /* Mapping helper macros */ -#define DRM_IOREMAP(map) \ +#define DRM_IOREMAP(map, dev) \ (map)->handle = DRM(ioremap)( dev, map ) -#define DRM_IOREMAP_NOCACHE(map) \ +#define DRM_IOREMAP_NOCACHE(map, dev) \ (map)->handle = DRM(ioremap_nocache)( dev, map ) -#define DRM_IOREMAPFREE(map) \ +#define DRM_IOREMAPFREE(map, dev) \ do { \ if ( (map)->handle && (map)->size ) \ DRM(ioremapfree)( map ); \ diff --git a/bsd-core/drm_bufs.c b/bsd-core/drm_bufs.c index 87ec6f09..9ed35eba 100644 --- a/bsd-core/drm_bufs.c +++ b/bsd-core/drm_bufs.c @@ -136,7 +136,7 @@ int DRM(addmap)( DRM_IOCTL_ARGS ) #endif } #endif /* __REALLY_HAVE_MTRR */ - DRM_IOREMAP(map); + DRM_IOREMAP(map, dev); break; case _DRM_SHM: |