Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd: drop use of drmP.h in atom.h

Drop use of the deprecated drmP.h header from atom.h

Fix fallout in various files.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190609220757.10862-6-sam@ravnborg.org

+15 -2
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
··· 24 24 */ 25 25 26 26 #include <linux/irqdomain.h> 27 + #include <linux/pci.h> 27 28 #include <linux/pm_domain.h> 28 29 #include <linux/platform_device.h> 29 30 #include <sound/designware_i2s.h>
+2 -1
drivers/gpu/drm/amd/amdgpu/atom.h
··· 26 26 #define ATOM_H 27 27 28 28 #include <linux/types.h> 29 - #include <drm/drmP.h> 29 + 30 + struct drm_device; 30 31 31 32 #define ATOM_BIOS_MAGIC 0xAA55 32 33 #define ATOM_ATI_MAGIC_PTR 0x30
+2
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
··· 23 23 * 24 24 */ 25 25 26 + #include <linux/slab.h> 27 + 26 28 #include "dm_services.h" 27 29 28 30 #include "atom.h"
+2
drivers/gpu/drm/amd/display/dc/core/dc_link.c
··· 23 23 * 24 24 */ 25 25 26 + #include <linux/slab.h> 27 + 26 28 #include "dm_services.h" 27 29 #include "atom.h" 28 30 #include "dm_helpers.h"
+2
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c
··· 23 23 * 24 24 */ 25 25 26 + #include <linux/slab.h> 27 + 26 28 #include "dce_abm.h" 27 29 #include "dm_services.h" 28 30 #include "reg_helper.h"
+3
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c
··· 20 20 * OTHER DEALINGS IN THE SOFTWARE. 21 21 * 22 22 */ 23 + 24 + #include <linux/pci.h> 25 + 23 26 #include "hwmgr.h" 24 27 #include "pp_debug.h" 25 28 #include "ppatomctrl.h"
+3 -1
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
··· 20 20 * OTHER DEALINGS IN THE SOFTWARE. 21 21 */ 22 22 23 - #include "pp_debug.h" 24 23 #include <linux/firmware.h> 24 + #include <linux/module.h> 25 + 26 + #include "pp_debug.h" 25 27 #include "amdgpu.h" 26 28 #include "amdgpu_smu.h" 27 29 #include "atomfirmware.h"