diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2015-11-16 11:24:35 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:39 -0500 |
commit | c9fe74e68b01d44716cf26615b979f0221aaa2ff (patch) | |
tree | a6a47a3c810737e6f33c2fb9ce6dcae062322bba /drivers/gpu/drm/amd | |
parent | 09b7a9862222c44945c936f1c4f017b4cda1eaa1 (diff) | |
download | linux-c9fe74e68b01d44716cf26615b979f0221aaa2ff.tar.gz linux-c9fe74e68b01d44716cf26615b979f0221aaa2ff.tar.bz2 linux-c9fe74e68b01d44716cf26615b979f0221aaa2ff.zip |
drm/amd/powerplay: fix warning of cast to pointer from integer of different size.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c index 2348d8cafc9b..fd32be205be8 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c @@ -4956,12 +4956,12 @@ static int tonga_get_pp_table_entry_callback_func(struct pp_hwmgr *hwmgr, ATOM_Tonga_SCLK_Dependency_Table *sclk_dep_table = (ATOM_Tonga_SCLK_Dependency_Table *) - (((uint64_t)powerplay_table) + + (((unsigned long)powerplay_table) + le16_to_cpu(powerplay_table->usSclkDependencyTableOffset)); ATOM_Tonga_MCLK_Dependency_Table *mclk_dep_table = (ATOM_Tonga_MCLK_Dependency_Table *) - (((uint64_t)powerplay_table) + + (((unsigned long)powerplay_table) + le16_to_cpu(powerplay_table->usMclkDependencyTableOffset)); /* The following fields are not initialized here: id orderedList allStatesList */ |