]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/savage: drop use of drmP.h
authorSam Ravnborg <sam@ravnborg.org>
Wed, 5 Jun 2019 14:03:14 +0000 (16:03 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 5 Jun 2019 18:31:04 +0000 (20:31 +0200)
Drop use of the deprecated drmP.h header file.
Replace it with the necessary includes of other headers.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Link: https://patchwork.freedesktop.org/patch/msgid/20190605140313.13629-3-sam@ravnborg.org
drivers/gpu/drm/savage/savage_bci.c
drivers/gpu/drm/savage/savage_drv.c
drivers/gpu/drm/savage/savage_drv.h
drivers/gpu/drm/savage/savage_state.c

index aa00cf11743358749fce30f1aaed0b2e11014b48..6889d6534ebab9755d54a421f1fdf20a780940ee 100644 (file)
  */
 
 #include <linux/delay.h>
+#include <linux/pci.h>
+#include <linux/slab.h>
+#include <linux/uaccess.h>
 
-#include <drm/drmP.h>
+#include <drm/drm_device.h>
+#include <drm/drm_file.h>
+#include <drm/drm_print.h>
 #include <drm/savage_drm.h>
+
 #include "savage_drv.h"
 
 /* Need a long timeout for shadow status updates can take a while
index 2bddeb8bf457d16f55c965c11c90ff70cf6bfa91..2966fcfd9548aec22e9804a660072cb85ed219a7 100644 (file)
 
 #include <linux/module.h>
 
-#include <drm/drmP.h>
-#include <drm/savage_drm.h>
-#include "savage_drv.h"
-
+#include <drm/drm_drv.h>
+#include <drm/drm_file.h>
+#include <drm/drm_pci.h>
 #include <drm/drm_pciids.h>
 
+#include "savage_drv.h"
+
 static struct pci_device_id pciidlist[] = {
        savage_PCI_IDS
 };
index 38aab625f12ec35337f3bd819681d3c03c7819a1..b0081bb6477661ca441db9a7e2622813c9a58fb7 100644 (file)
 #ifndef __SAVAGE_DRV_H__
 #define __SAVAGE_DRV_H__
 
+#include <linux/io.h>
+
+#include <drm/drm_ioctl.h>
 #include <drm/drm_legacy.h>
+#include <drm/savage_drm.h>
 
 #define DRIVER_AUTHOR  "Felix Kuehling"
 
index ebb8b7d32b3345dd32ec0ba4b530b21c67d935f3..a2ac25c11c90384ad73d377ec4ed314b2ada0467 100644 (file)
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
-#include <drm/drmP.h>
+
+#include <linux/slab.h>
+#include <linux/uaccess.h>
+
+#include <drm/drm_device.h>
+#include <drm/drm_file.h>
+#include <drm/drm_print.h>
 #include <drm/savage_drm.h>
+
 #include "savage_drv.h"
 
 void savage_emit_clip_rect_s3d(drm_savage_private_t * dev_priv,