diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-11-23 06:12:59 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-11-23 06:12:59 -0500 |
commit | 7655f493b74f3048c02458bc32cd0b144f7b394f (patch) | |
tree | 7fca7d65df8a2a05caf9aae9a54a6760a75131f4 /drivers/char/drm | |
parent | c41f47121d8bf44b886ef2039779dab8c1e3a25f (diff) |
drm: move is_pci to the end of the structure
We memset the structure across opens except for the flags. The correct
fix is more intrusive but this should fix a problem with bad iounmaps
seen on AGP radeons acting like PCI ones.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r-- | drivers/char/drm/radeon_drv.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/drm/radeon_drv.h b/drivers/char/drm/radeon_drv.h index 120ee5a8ebcc..7bda7e33d2bd 100644 --- a/drivers/char/drm/radeon_drv.h +++ b/drivers/char/drm/radeon_drv.h | |||
@@ -214,8 +214,6 @@ typedef struct drm_radeon_private { | |||
214 | 214 | ||
215 | int microcode_version; | 215 | int microcode_version; |
216 | 216 | ||
217 | int is_pci; | ||
218 | |||
219 | struct { | 217 | struct { |
220 | u32 boxes; | 218 | u32 boxes; |
221 | int freelist_timeouts; | 219 | int freelist_timeouts; |
@@ -275,6 +273,7 @@ typedef struct drm_radeon_private { | |||
275 | 273 | ||
276 | /* starting from here on, data is preserved accross an open */ | 274 | /* starting from here on, data is preserved accross an open */ |
277 | uint32_t flags; /* see radeon_chip_flags */ | 275 | uint32_t flags; /* see radeon_chip_flags */ |
276 | int is_pci; | ||
278 | } drm_radeon_private_t; | 277 | } drm_radeon_private_t; |
279 | 278 | ||
280 | typedef struct drm_radeon_buf_priv { | 279 | typedef struct drm_radeon_buf_priv { |