drm/amdgpu: Do not directly dereference pointers to BIOS area.
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2015 14:50:02 +0000 (10:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:16 +0000 (21:03 -0400)
commit18da4340e651dd41d698fc54084b9139b614539b
tree3113353e0f9706dcfd2d8547b1dcb9304e7ac609
parent17b10f941f939da459072a066c6e5e9af9dda610
drm/amdgpu: Do not directly dereference pointers to BIOS area.

Use readb() and memcpy_fromio() accessors instead.

Ported from radeon commit:
f2c9e560b406f2f6b14b345c7da33467dee9cdf2

Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Jammy Zhou <Jammy.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c