diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-01-04 02:26:10 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-01-10 05:01:22 -0500 |
commit | 96067adf55bd93618cec4b6de08aebaad8203c9b (patch) | |
tree | 1ddabb7a000e5ffd6702a6afaecbb2d2e3238e4b /drivers/gpu | |
parent | 7920aa5a9d841fc7a10ff53a5a775f821d7a6ba1 (diff) |
gma500: silence gcc warnings in mid_get_vbt_data()
Add a cast here to silence a Gcc warning.
drivers/gpu/drm/gma500/mid_bios.c:214:28: warning:
cast from pointer to integer of different size [-Wpointer-to-int-cast]
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/gma500/mid_bios.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/gma500/mid_bios.c b/drivers/gpu/drm/gma500/mid_bios.c index 55fee10eefff..5eee9ad80da4 100644 --- a/drivers/gpu/drm/gma500/mid_bios.c +++ b/drivers/gpu/drm/gma500/mid_bios.c | |||
@@ -202,7 +202,7 @@ static void mid_get_vbt_data(struct drm_psb_private *dev_priv) | |||
202 | /*so, some values have changed location*/ | 202 | /*so, some values have changed location*/ |
203 | new_size = vbt->checksum; /*checksum contains lo size byte*/ | 203 | new_size = vbt->checksum; /*checksum contains lo size byte*/ |
204 | /*LSB of oaktrail_gct contains hi size byte*/ | 204 | /*LSB of oaktrail_gct contains hi size byte*/ |
205 | new_size |= ((0xff & (unsigned int)vbt->oaktrail_gct)) << 8; | 205 | new_size |= ((0xff & (unsigned int)(long)vbt->oaktrail_gct)) << 8; |
206 | 206 | ||
207 | vbt->checksum = vbt->size; /*size contains the checksum*/ | 207 | vbt->checksum = vbt->size; /*size contains the checksum*/ |
208 | if (new_size > 0xff) | 208 | if (new_size > 0xff) |
@@ -211,8 +211,8 @@ static void mid_get_vbt_data(struct drm_psb_private *dev_priv) | |||
211 | vbt->size = new_size; | 211 | vbt->size = new_size; |
212 | 212 | ||
213 | /* number of descriptors defined in the GCT */ | 213 | /* number of descriptors defined in the GCT */ |
214 | number_desc = ((0xff00 & (unsigned int)vbt->oaktrail_gct)) >> 8; | 214 | number_desc = ((0xff00 & (unsigned int)(long)vbt->oaktrail_gct)) >> 8; |
215 | bpi = ((0xff0000 & (unsigned int)vbt->oaktrail_gct)) >> 16; | 215 | bpi = ((0xff0000 & (unsigned int)(long)vbt->oaktrail_gct)) >> 16; |
216 | vbt->oaktrail_gct = ioremap(addr + GCT_R10_HEADER_SIZE, | 216 | vbt->oaktrail_gct = ioremap(addr + GCT_R10_HEADER_SIZE, |
217 | GCT_R10_DISPLAY_DESC_SIZE * number_desc); | 217 | GCT_R10_DISPLAY_DESC_SIZE * number_desc); |
218 | pGCT = vbt->oaktrail_gct; | 218 | pGCT = vbt->oaktrail_gct; |