]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
drm: move is_pci to the end of the structure
authorDave Airlie <airlied@starflyer.(none)>
Wed, 23 Nov 2005 11:12:59 +0000 (22:12 +1100)
committerDave Airlie <airlied@linux.ie>
Wed, 23 Nov 2005 11:12:59 +0000 (22:12 +1100)
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>
drivers/char/drm/radeon_drv.h

index 120ee5a8ebcc8ab2e12953dbabb7574d467a4af4..7bda7e33d2bdb03f40fb822431f54b46898df2ba 100644 (file)
@@ -214,8 +214,6 @@ typedef struct drm_radeon_private {
 
        int microcode_version;
 
-       int is_pci;
-
        struct {
                u32 boxes;
                int freelist_timeouts;
@@ -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 {