Commit 96067adf authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7920aa5a
...@@ -202,7 +202,7 @@ static void mid_get_vbt_data(struct drm_psb_private *dev_priv) ...@@ -202,7 +202,7 @@ static void mid_get_vbt_data(struct drm_psb_private *dev_priv)
/*so, some values have changed location*/ /*so, some values have changed location*/
new_size = vbt->checksum; /*checksum contains lo size byte*/ new_size = vbt->checksum; /*checksum contains lo size byte*/
/*LSB of oaktrail_gct contains hi size byte*/ /*LSB of oaktrail_gct contains hi size byte*/
new_size |= ((0xff & (unsigned int)vbt->oaktrail_gct)) << 8; new_size |= ((0xff & (unsigned int)(long)vbt->oaktrail_gct)) << 8;
vbt->checksum = vbt->size; /*size contains the checksum*/ vbt->checksum = vbt->size; /*size contains the checksum*/
if (new_size > 0xff) if (new_size > 0xff)
...@@ -211,8 +211,8 @@ static void mid_get_vbt_data(struct drm_psb_private *dev_priv) ...@@ -211,8 +211,8 @@ static void mid_get_vbt_data(struct drm_psb_private *dev_priv)
vbt->size = new_size; vbt->size = new_size;
/* number of descriptors defined in the GCT */ /* number of descriptors defined in the GCT */
number_desc = ((0xff00 & (unsigned int)vbt->oaktrail_gct)) >> 8; number_desc = ((0xff00 & (unsigned int)(long)vbt->oaktrail_gct)) >> 8;
bpi = ((0xff0000 & (unsigned int)vbt->oaktrail_gct)) >> 16; bpi = ((0xff0000 & (unsigned int)(long)vbt->oaktrail_gct)) >> 16;
vbt->oaktrail_gct = ioremap(addr + GCT_R10_HEADER_SIZE, vbt->oaktrail_gct = ioremap(addr + GCT_R10_HEADER_SIZE,
GCT_R10_DISPLAY_DESC_SIZE * number_desc); GCT_R10_DISPLAY_DESC_SIZE * number_desc);
pGCT = vbt->oaktrail_gct; pGCT = vbt->oaktrail_gct;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment