diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-06-14 10:16:17 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-18 14:38:27 +1000 |
commit | 0897554cdd9de8a9f6f93d9ba27c7ebfae286158 (patch) | |
tree | be057975a377d4a3b881120577e2569ba9df76d4 | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff) | |
download | kernel_samsung_tuna-0897554cdd9de8a9f6f93d9ba27c7ebfae286158.zip kernel_samsung_tuna-0897554cdd9de8a9f6f93d9ba27c7ebfae286158.tar.gz kernel_samsung_tuna-0897554cdd9de8a9f6f93d9ba27c7ebfae286158.tar.bz2 |
drm/nouveau: fix big-endian switch
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 8021888..144f79a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c @@ -881,8 +881,8 @@ int nouveau_load(struct drm_device *dev, unsigned long flags) #ifdef __BIG_ENDIAN /* Put the card in BE mode if it's not */ - if (nv_rd32(dev, NV03_PMC_BOOT_1)) - nv_wr32(dev, NV03_PMC_BOOT_1, 0x00000001); + if (nv_rd32(dev, NV03_PMC_BOOT_1) != 0x01000001) + nv_wr32(dev, NV03_PMC_BOOT_1, 0x01000001); DRM_MEMORYBARRIER(); #endif |