Skip to content

Commit

Permalink
drm: move is_pci to the end of the structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Nov 23, 2005
1 parent c41f471 commit 7655f49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/char/drm/radeon_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ typedef struct drm_radeon_private {

int microcode_version;

int is_pci;

struct {
u32 boxes;
int freelist_timeouts;
Expand Down Expand Up @@ -275,6 +273,7 @@ typedef struct drm_radeon_private {

/* starting from here on, data is preserved accross an open */
uint32_t flags; /* see radeon_chip_flags */
int is_pci;
} drm_radeon_private_t;

typedef struct drm_radeon_buf_priv {
Expand Down

0 comments on commit 7655f49

Please sign in to comment.