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.
This commit is contained in:
riastradh 2014-07-17 20:41:22 +00:00
parent 852bd97d54
commit 5820ca24c6

View File

@ -1250,7 +1250,7 @@ int radeon_device_init(struct radeon_device *rdev,
#endif
rdev->shutdown = false;
rdev->dev = &pdev->dev;
rdev->dev = ddev->dev;
rdev->ddev = ddev;
rdev->pdev = pdev;
rdev->flags = flags;