]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amd: drop use of drmP.h in atom.h
authorSam Ravnborg <sam@ravnborg.org>
Sun, 9 Jun 2019 22:07:52 +0000 (00:07 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 10 Jun 2019 21:00:01 +0000 (23:00 +0200)
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
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
drivers/gpu/drm/amd/amdgpu/atom.h
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index 0a4fba196b843e4fe27b48b94f478478d1281749..eba42c752bca32dacdb437f2ce2ec2ba5c0f2da4 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <linux/irqdomain.h>
+#include <linux/pci.h>
 #include <linux/pm_domain.h>
 #include <linux/platform_device.h>
 #include <sound/designware_i2s.h>
index a39170991afe73ce4e1d2c38277487e060faebc6..4205bbe5d8d7076090f409a9f683b70d9866e446 100644 (file)
@@ -26,7 +26,8 @@
 #define ATOM_H
 
 #include <linux/types.h>
-#include <drm/drmP.h>
+
+struct drm_device;
 
 #define ATOM_BIOS_MAGIC                0xAA55
 #define ATOM_ATI_MAGIC_PTR     0x30
index a4c97d32e7512baee5da78f452d4178bec702615..461eef1de124d42517fb9703d5f7a5d2630f4742 100644 (file)
@@ -23,6 +23,8 @@
  *
  */
 
+#include <linux/slab.h>
+
 #include "dm_services.h"
 
 #include "atom.h"
index b37ecc3ede619f4ccd9004e9a75c9aa66999748a..bcb20e71b920539593704b2abdc1232edcb1cc23 100644 (file)
@@ -23,6 +23,8 @@
  *
  */
 
+#include <linux/slab.h>
+
 #include "dm_services.h"
 #include "atom.h"
 #include "dm_helpers.h"
index da96229db53a76a91e739d3f85bbadc8df78f689..dbd8cc6001279c4dea8a8ef64d30301c38901415 100644 (file)
@@ -23,6 +23,8 @@
  *
  */
 
+#include <linux/slab.h>
+
 #include "dce_abm.h"
 #include "dm_services.h"
 #include "reg_helper.h"
index 101c09b212ade5690299c823f27aea1ae65cae4a..d09690fca45205894e706bc866fa29ee5ff65640 100644 (file)
@@ -20,6 +20,9 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  *
  */
+
+#include <linux/pci.h>
+
 #include "hwmgr.h"
 #include "pp_debug.h"
 #include "ppatomctrl.h"
index 92903a4cc4d8f460f371d76c942c4cb04afdc2af..d5d317f17c2894e0df6b2e96d1bf3975bf7704d8 100644 (file)
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include "pp_debug.h"
 #include <linux/firmware.h>
+#include <linux/module.h>
+
+#include "pp_debug.h"
 #include "amdgpu.h"
 #include "amdgpu_smu.h"
 #include "atomfirmware.h"