drm: qxl: Open code probing sequence for qxl
authorGabriel Krisman Bertazi <krisman@collabora.co.uk>
Thu, 19 Jan 2017 13:48:05 +0000 (11:48 -0200)
committerGustavo Padovan <gustavo.padovan@collabora.com>
Thu, 19 Jan 2017 17:33:25 +0000 (15:33 -0200)
commit2b65d5677a797f8b53e97548003d1f38677fee81
treecd83f4beacbf03db065368aa66d586dde9941bf6
parent3587c856675c45809010c2cee5b21096f6e8e938
drm: qxl: Open code probing sequence for qxl

This avoids using the deprecated drm_get_pci_dev() and load() hook
interfaces in the qxl driver.

The only tricky part is to ensure TTM debugfs initialization happens
after the debugfs root node is created, which is done by moving that
code into the debufs_init() hook.

Tested on qemu with igt and running a WM on top of X.

Changes since v1:
 - Drop verification for primary minor in qxl_debugsfs_init.
Changes since V2:
 - Put new header together with other debugfs headers.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170119134806.8926-1-krisman@collabora.co.uk
drivers/gpu/drm/qxl/qxl_debugfs.c
drivers/gpu/drm/qxl/qxl_drv.c
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/qxl/qxl_kms.c
drivers/gpu/drm/qxl/qxl_ttm.c