diff options
author | rezhu <Rex.Zhu@amd.com> | 2015-11-12 16:40:50 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:38 -0500 |
commit | 09b7a9862222c44945c936f1c4f017b4cda1eaa1 (patch) | |
tree | 1f6e2b93990ec969feaba51e4f86e0c868b78e31 /drivers/gpu/drm/amd/powerplay/hwmgr | |
parent | 9c0bad907413f5e3bea19d062beaab65b3dbf98f (diff) | |
download | blackbird-op-linux-09b7a9862222c44945c936f1c4f017b4cda1eaa1.tar.gz blackbird-op-linux-09b7a9862222c44945c936f1c4f017b4cda1eaa1.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/powerplay/hwmgr')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c index f243e40ed158..618cc4d9d7aa 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c @@ -121,7 +121,7 @@ int hw_init_power_state_table(struct pp_hwmgr *hwmgr) if (state->classification.flags & PP_StateClassificationFlag_Uvd) hwmgr->uvd_ps = state; - state = (struct pp_power_state *)((uint64_t)state + size); + state = (struct pp_power_state *)((unsigned long)state + size); } return 0; |