diff options
author | Gabriel Krisman Bertazi <krisman@collabora.co.uk> | 2017-01-27 04:05:48 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-02 12:02:37 +0300 |
commit | cbdded7f8a633ee9418047c50a7114ce2282b912 (patch) | |
tree | a9192b0b9f595c0dbab7799865c536ba34286159 /drivers/gpu/drm/qxl/qxl_ttm.c | |
parent | d74d74aeaf0b29a158bc95c63c6b6b107a57f4f5 (diff) | |
download | linux-cbdded7f8a633ee9418047c50a7114ce2282b912.tar.xz |
drm: qxl: Embed drm_device into driver structure
This is the recommended way to create the drm_device structure,
according to DRM documentation.
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170127010548.27970-4-krisman@collabora.co.uk
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_ttm.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index 3dcc48431015..4e1a40389964 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -408,7 +408,7 @@ int qxl_ttm_init(struct qxl_device *qdev) r = ttm_bo_device_init(&qdev->mman.bdev, qdev->mman.bo_global_ref.ref.object, &qxl_bo_driver, - qdev->ddev->anon_inode->i_mapping, + qdev->ddev.anon_inode->i_mapping, DRM_FILE_PAGE_OFFSET, 0); if (r) { DRM_ERROR("failed initializing buffer object driver(%d).\n", r); |