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/radeon In radeon_device_init, ...
details: https://anonhg.NetBSD.org/src/rev/fea30c914edc
branches: trunk
changeset: 330683:fea30c914edc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Jul 17 20:41:22 2014 +0000
description:
In radeon_device_init, use ddev->dev, not &pdev->dev, for rdev->dev.
ddev->dev is the actual device_t, and we need it for firmware load.
&pdev->dev is a dummy structure that serves no purpose except some
kludge in our Linux PCI compatibility crap. In Linux the two should
be the same, so no need to #ifdef __NetBSD__ this.
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r de6e3dd4fa98 -r fea30c914edc sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c Thu Jul 17 20:37:01 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c Thu Jul 17 20:41:22 2014 +0000
@@ -1250,7 +1250,7 @@
#endif
rdev->shutdown = false;
- rdev->dev = &pdev->dev;
+ rdev->dev = ddev->dev;
rdev->ddev = ddev;
rdev->pdev = pdev;
rdev->flags = flags;
Home |
Main Index |
Thread Index |
Old Index