forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/gpu/drm/qxl/qxl_irq.c
....@@ -23,12 +23,16 @@
2323 * Alon Levy
2424 */
2525
26
+#include <linux/pci.h>
27
+
28
+#include <drm/drm_irq.h>
29
+
2630 #include "qxl_drv.h"
2731
2832 irqreturn_t qxl_irq_handler(int irq, void *arg)
2933 {
3034 struct drm_device *dev = (struct drm_device *) arg;
31
- struct qxl_device *qdev = (struct qxl_device *)dev->dev_private;
35
+ struct qxl_device *qdev = to_qxl(dev);
3236 uint32_t pending;
3337
3438 pending = xchg(&qdev->ram_header->int_pending, 0);