summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-12-10 15:50:38 +1000
committerDave Airlie <airlied@linux.ie>2007-12-10 15:50:38 +1000
commit731830297f2fc4a416882aacfb0d9b5f8ed32520 (patch)
tree10f179487c3fe181eabb14742237e7140013dd1f
parent2818e2b02ca90c9dfa50905b5311b2ae83ac3b0c (diff)
fixup some warnings
-rw-r--r--src/radeon_atombios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c
index 9d17e47..a04598d 100644
--- a/src/radeon_atombios.c
+++ b/src/radeon_atombios.c
@@ -1443,7 +1443,7 @@ RADEONGetATOMConnectorInfoFromBIOSObject (ScrnInfoPtr pScrn)
ErrorF("record type %d\n", Record->ucRecordType);
switch (Record->ucRecordType) {
case ATOM_I2C_RECORD_TYPE:
- rhdAtomParseI2CRecord(&info->atomBIOS,
+ rhdAtomParseI2CRecord(info->atomBIOS,
(ATOM_I2C_RECORD *)Record,
&info->BiosConnector[i].ddc_line);
break;
@@ -2604,7 +2604,7 @@ CailWritePLL(VOID *CAIL, ULONG Address,ULONG Data)
void
atombios_get_command_table_version(atomBiosHandlePtr atomBIOS, int index, int *major, int *minor)
{
- ATOM_MASTER_COMMAND_TABLE *cmd_table = atomBIOS->BIOSBase + atomBIOS->cmd_offset;
+ ATOM_MASTER_COMMAND_TABLE *cmd_table = (void *)(atomBIOS->BIOSBase + atomBIOS->cmd_offset);
ATOM_MASTER_LIST_OF_COMMAND_TABLES *table_start;
ATOM_COMMON_ROM_COMMAND_TABLE_HEADER *table_hdr;
@@ -2615,7 +2615,7 @@ atombios_get_command_table_version(atomBiosHandlePtr atomBIOS, int index, int *m
offset = *(((unsigned short *)table_start) + index);
- table_hdr = atomBIOS->BIOSBase + offset;
+ table_hdr = (ATOM_COMMON_ROM_COMMAND_TABLE_HEADER *)(atomBIOS->BIOSBase + offset);
*major = table_hdr->CommonHeader.ucTableFormatRevision;
*minor = table_hdr->CommonHeader.ucTableContentRevision;