diff options
author | Dave Airlie <airlied@linux.ie> | 2007-05-25 15:01:51 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-10 21:58:02 -0400 |
commit | bd1b331fae2813d9f03ceee649296f02edc0b893 (patch) | |
tree | 6139f72ebae88c332c754745f3d98cbe794ae4de /drivers/char/drm/drm_os_linux.h | |
parent | 4eb6bf6bfb580afaf1e1a1d30cba17a078530cf4 (diff) |
drm: cleanup use of Linux list handling macros
This makes the drms use of the list handling macros a lot cleaner
and more along the lines of how they should be used and uses them
in some more places.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_os_linux.h')
-rw-r--r-- | drivers/char/drm/drm_os_linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_os_linux.h b/drivers/char/drm/drm_os_linux.h index 0fe7b4497927..e6e5ae89e100 100644 --- a/drivers/char/drm/drm_os_linux.h +++ b/drivers/char/drm/drm_os_linux.h | |||
@@ -104,7 +104,7 @@ static __inline__ int mtrr_del(int reg, unsigned long base, unsigned long size) | |||
104 | #define DRM_GETSAREA() \ | 104 | #define DRM_GETSAREA() \ |
105 | do { \ | 105 | do { \ |
106 | drm_map_list_t *entry; \ | 106 | drm_map_list_t *entry; \ |
107 | list_for_each_entry( entry, &dev->maplist->head, head ) { \ | 107 | list_for_each_entry( entry, &dev->maplist, head ) { \ |
108 | if ( entry->map && \ | 108 | if ( entry->map && \ |
109 | entry->map->type == _DRM_SHM && \ | 109 | entry->map->type == _DRM_SHM && \ |
110 | (entry->map->flags & _DRM_CONTAINS_LOCK) ) { \ | 110 | (entry->map->flags & _DRM_CONTAINS_LOCK) ) { \ |