Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289201
b: refs/heads/master
c: 132390c
h: refs/heads/master
i:
  289199: 3e06e12
v: v3
  • Loading branch information
Andy Gross authored and Greg Kroah-Hartman committed Mar 7, 2012
1 parent 4659818 commit c4a910a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f6b6036e56ca17378dd0294b684db623abd6a901
refs/heads/master: 132390c79e01b3da732bc7b5d9e729b52086ceb6
15 changes: 7 additions & 8 deletions trunk/drivers/staging/omapdrm/omap_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,10 @@ int omap_debugfs_init(struct drm_minor *minor)
return ret;
}

/* TODO: only do this if has_dmm.. but this fxn gets called before
* dev_load() so we don't know this yet..
*/
ret = drm_debugfs_create_files(omap_dmm_debugfs_list,
ARRAY_SIZE(omap_dmm_debugfs_list),
minor->debugfs_root, minor);
if (dmm_is_available())
ret = drm_debugfs_create_files(omap_dmm_debugfs_list,
ARRAY_SIZE(omap_dmm_debugfs_list),
minor->debugfs_root, minor);

if (ret) {
dev_err(dev->dev, "could not install omap_dmm_debugfs_list\n");
Expand All @@ -131,8 +129,9 @@ void omap_debugfs_cleanup(struct drm_minor *minor)
{
drm_debugfs_remove_files(omap_debugfs_list,
ARRAY_SIZE(omap_debugfs_list), minor);
drm_debugfs_remove_files(omap_dmm_debugfs_list,
ARRAY_SIZE(omap_dmm_debugfs_list), minor);
if (dmm_is_available())
drm_debugfs_remove_files(omap_dmm_debugfs_list,
ARRAY_SIZE(omap_dmm_debugfs_list), minor);
}

#endif
6 changes: 6 additions & 0 deletions trunk/drivers/staging/omapdrm/omap_dmm_tiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#ifndef OMAP_DMM_TILER_H
#define OMAP_DMM_TILER_H

#include <plat/cpu.h>
#include "omap_drv.h"
#include "tcm.h"

Expand Down Expand Up @@ -132,4 +133,9 @@ struct omap_dmm_platform_data {
int irq;
};

static inline int dmm_is_available(void)
{
return cpu_is_omap44xx();
}

#endif

0 comments on commit c4a910a

Please sign in to comment.