diff options
author | Dave Airlie <airlied@redhat.com> | 2011-11-29 06:42:50 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-11-29 06:42:50 -0500 |
commit | 435ddd926e880f14ea2ae37062b9b45231d7fdf9 (patch) | |
tree | 3aab0acdcb71647bca8f246175bb80eb3235dcc9 | |
parent | 1595c568c9237d1b1371ef3a2a2d98d231b1b59b (diff) |
drm/radeon/kms: fix up for BIG ENDIAN breakage
Commit 308e5bcbdb10 ("drm: add an fb creation ioctl that takes a pixel
format v5") missed one spot needing to be fixed up in the __BIG_ENDIAN
case.
Fixes build error:
drivers/gpu/drm/radeon/radeon_fb.c: In function
'radeonfb_create_pinned_object':
drivers/gpu/drm/radeon/radeon_fb.c:144:18: error: 'struct drm_mode_fb_cmd2'
has no member named 'bpp'
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index ea110ad2a841..9c42c6a333d9 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c | |||
@@ -141,7 +141,7 @@ static int radeonfb_create_pinned_object(struct radeon_fbdev *rfbdev, | |||
141 | tiling_flags = RADEON_TILING_MACRO; | 141 | tiling_flags = RADEON_TILING_MACRO; |
142 | 142 | ||
143 | #ifdef __BIG_ENDIAN | 143 | #ifdef __BIG_ENDIAN |
144 | switch (mode_cmd->bpp) { | 144 | switch (bpp) { |
145 | case 32: | 145 | case 32: |
146 | tiling_flags |= RADEON_TILING_SWAP_32BIT; | 146 | tiling_flags |= RADEON_TILING_SWAP_32BIT; |
147 | break; | 147 | break; |