diff options
author | Dave Airlie <airlied@redhat.com> | 2013-04-18 11:47:40 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-04-18 11:47:40 +1000 |
commit | e1adc78caf440d3f6be81a947c2b913e73514a68 (patch) | |
tree | 929310adc45d74f995265bc046ca04c3a62734c9 /drivers/gpu/drm/qxl/qxl_ttm.c | |
parent | 9f7bc6acf78af238a0b8ee0bb86ab62f1fc4f51f (diff) | |
download | blackbird-op-linux-e1adc78caf440d3f6be81a947c2b913e73514a68.tar.gz blackbird-op-linux-e1adc78caf440d3f6be81a947c2b913e73514a68.zip |
drm/qxl: fix build with debugfs turned off.
Reported-by: Randy Dunlap
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_ttm.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index 1a86242eedb0..489cb8cece4d 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -555,6 +555,7 @@ static int qxl_mm_dump_table(struct seq_file *m, void *data) static int qxl_ttm_debugfs_init(struct qxl_device *qdev) { +#if defined(CONFIG_DEBUG_FS) static struct drm_info_list qxl_mem_types_list[QXL_DEBUGFS_MEM_TYPES]; static char qxl_mem_types_names[QXL_DEBUGFS_MEM_TYPES][32]; unsigned i; @@ -574,4 +575,7 @@ static int qxl_ttm_debugfs_init(struct qxl_device *qdev) } return qxl_debugfs_add_files(qdev, qxl_mem_types_list, i); +#else + return 0; +#endif } |