summaryrefslogtreecommitdiff
path: root/drm/nouveau/nouveau_drm.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:17 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:37:38 +1000
commit79a8ba77d3d0243e8dca597763aecf43e5bc582e (patch)
treecab0babde59409caf45789632a78f801a265bbe8 /drm/nouveau/nouveau_drm.c
parent395156e3e0283a68aef23341d26b42c7362a27d0 (diff)
downloadnouveau-79a8ba77d3d0243e8dca597763aecf43e5bc582e.tar.gz
device: separate construction of pci/tegra devices
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nouveau_drm.c')
-rw-r--r--drm/nouveau/nouveau_drm.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c
index 37dbd5e1c..e638ae7c0 100644
--- a/drm/nouveau/nouveau_drm.c
+++ b/drm/nouveau/nouveau_drm.c
@@ -32,9 +32,10 @@
#include "drmP.h"
#include "drm_crtc_helper.h"
-#include <core/device.h>
#include <core/gpuobj.h>
#include <core/option.h>
+#include <core/pci.h>
+#include <core/tegra.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
@@ -326,9 +327,8 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
remove_conflicting_framebuffers(aper, "nouveaufb", boot);
kfree(aper);
- ret = nvkm_device_new(pdev, NVKM_BUS_PCI, nouveau_pci_name(pdev),
- pci_name(pdev), nouveau_config, nouveau_debug,
- true, true, ~0ULL, &device);
+ ret = nvkm_device_pci_new(pdev, nouveau_config, nouveau_debug,
+ true, true, ~0ULL, &device);
if (ret)
return ret;
@@ -1036,11 +1036,8 @@ nouveau_platform_device_create(struct platform_device *pdev,
struct drm_device *drm;
int err;
- err = nvkm_device_new(pdev, NVKM_BUS_PLATFORM,
- nouveau_platform_name(pdev),
- dev_name(&pdev->dev), nouveau_config,
- nouveau_debug, true, true, ~0ULL,
- pdevice);
+ err = nvkm_device_tegra_new(pdev, nouveau_config, nouveau_debug,
+ true, true, ~0ULL, pdevice);
if (err)
goto err_free;