Avoid beyond bounds copy while caching ACL
[zen-stable.git] / drivers / staging / omapdrm / omap_debugfs.c
blobda920dfdc59c4aee0bf1cc033bcca6e743d5c71f
1 /*
2 * drivers/staging/omapdrm/omap_debugfs.c
4 * Copyright (C) 2011 Texas Instruments
5 * Author: Rob Clark <rob.clark@linaro.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "omap_drv.h"
21 #include "omap_dmm_tiler.h"
23 #ifdef CONFIG_DEBUG_FS
25 static struct drm_info_list omap_debugfs_list[] = {
26 {"tiler_map", tiler_map_show, 0},
29 int omap_debugfs_init(struct drm_minor *minor)
31 return drm_debugfs_create_files(omap_debugfs_list,
32 ARRAY_SIZE(omap_debugfs_list),
33 minor->debugfs_root, minor);
36 void omap_debugfs_cleanup(struct drm_minor *minor)
38 drm_debugfs_remove_files(omap_debugfs_list,
39 ARRAY_SIZE(omap_debugfs_list), minor);
42 #endif