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:
parent
852bd97d54
commit
5820ca24c6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user