| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ |
|---|
| 3 | 4 | * Author: Rob Clark <rob.clark@linaro.org> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | - * under the terms of the GNU General Public License version 2 as published by |
|---|
| 7 | | - * the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | - * more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * You should have received a copy of the GNU General Public License along with |
|---|
| 15 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 16 | 5 | */ |
|---|
| 17 | 6 | |
|---|
| 18 | 7 | #include <linux/seq_file.h> |
|---|
| 19 | 8 | |
|---|
| 20 | 9 | #include <drm/drm_crtc.h> |
|---|
| 10 | +#include <drm/drm_debugfs.h> |
|---|
| 11 | +#include <drm/drm_file.h> |
|---|
| 21 | 12 | #include <drm/drm_fb_helper.h> |
|---|
| 22 | 13 | |
|---|
| 23 | 14 | #include "omap_drv.h" |
|---|
| .. | .. |
|---|
| 89 | 80 | {"tiler_map", tiler_map_show, 0}, |
|---|
| 90 | 81 | }; |
|---|
| 91 | 82 | |
|---|
| 92 | | -int omap_debugfs_init(struct drm_minor *minor) |
|---|
| 83 | +void omap_debugfs_init(struct drm_minor *minor) |
|---|
| 93 | 84 | { |
|---|
| 94 | | - struct drm_device *dev = minor->dev; |
|---|
| 95 | | - int ret; |
|---|
| 96 | | - |
|---|
| 97 | | - ret = drm_debugfs_create_files(omap_debugfs_list, |
|---|
| 98 | | - ARRAY_SIZE(omap_debugfs_list), |
|---|
| 99 | | - minor->debugfs_root, minor); |
|---|
| 100 | | - |
|---|
| 101 | | - if (ret) { |
|---|
| 102 | | - dev_err(dev->dev, "could not install omap_debugfs_list\n"); |
|---|
| 103 | | - return ret; |
|---|
| 104 | | - } |
|---|
| 85 | + drm_debugfs_create_files(omap_debugfs_list, |
|---|
| 86 | + ARRAY_SIZE(omap_debugfs_list), |
|---|
| 87 | + minor->debugfs_root, minor); |
|---|
| 105 | 88 | |
|---|
| 106 | 89 | if (dmm_is_available()) |
|---|
| 107 | | - ret = drm_debugfs_create_files(omap_dmm_debugfs_list, |
|---|
| 108 | | - ARRAY_SIZE(omap_dmm_debugfs_list), |
|---|
| 109 | | - minor->debugfs_root, minor); |
|---|
| 110 | | - |
|---|
| 111 | | - if (ret) { |
|---|
| 112 | | - dev_err(dev->dev, "could not install omap_dmm_debugfs_list\n"); |
|---|
| 113 | | - return ret; |
|---|
| 114 | | - } |
|---|
| 115 | | - |
|---|
| 116 | | - return ret; |
|---|
| 90 | + drm_debugfs_create_files(omap_dmm_debugfs_list, |
|---|
| 91 | + ARRAY_SIZE(omap_dmm_debugfs_list), |
|---|
| 92 | + minor->debugfs_root, minor); |
|---|
| 117 | 93 | } |
|---|
| 118 | 94 | |
|---|
| 119 | 95 | #endif |
|---|