Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Emulate pdev->dev for Ne...
details: https://anonhg.NetBSD.org/src/rev/107e51679894
branches: trunk
changeset: 1028554:107e51679894
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:18:52 2021 +0000
description:
Emulate pdev->dev for NetBSD.
Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_drv.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 40f56faa3eed -r 107e51679894 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c Sun Dec 19 11:18:44 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c Sun Dec 19 11:18:52 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_drv.c,v 1.35 2021/12/19 11:18:44 riastradh Exp $ */
+/* $NetBSD: i915_drv.c,v 1.36 2021/12/19 11:18:52 riastradh Exp $ */
/* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
*/
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.35 2021/12/19 11:18:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.36 2021/12/19 11:18:52 riastradh Exp $");
#include <linux/acpi.h>
#include <linux/device.h>
@@ -1483,7 +1483,7 @@
if (!i915)
return ERR_PTR(-ENOMEM);
- err = drm_dev_init(&i915->drm, &driver, &pdev->dev);
+ err = drm_dev_init(&i915->drm, &driver, device_parent(pdev->pd_dev));
if (err) {
kfree(i915);
return ERR_PTR(err);
Home |
Main Index |
Thread Index |
Old Index