A future commit will hide the platform/pci specifics from nvkm_device,
but it's still very useful in a lot of places to have access to the
Linux device struct.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
 
        struct pci_dev *pdev;
        struct platform_device *platformdev;
+       struct device *dev;
        u64 handle;
 
        struct nvkm_event event;
 
        switch (type) {
        case NVKM_BUS_PCI:
                device->pdev = dev;
+               device->dev = &device->pdev->dev;
                break;
        case NVKM_BUS_PLATFORM:
                device->platformdev = dev;
+               device->dev = &device->platformdev->dev;
                break;
        }
        device->handle = name;