[PATCH] glamo-core: move glamo_engine_reg_set definition outside #ifdef CONFIG_DEBUG_FS
Martin Jansa
martin.jansa at gmail.com
Wed Aug 4 11:58:37 CEST 2010
* it's also used outside
* building without CONFIG_DEBUG_FS fails with error: array type has incomplete element type
---
drivers/mfd/glamo-core.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/mfd/glamo-core.c b/drivers/mfd/glamo-core.c
index 05bc737..1d51ac1 100644
--- a/drivers/mfd/glamo-core.c
+++ b/drivers/mfd/glamo-core.c
@@ -383,12 +383,6 @@ static const struct file_operations debugfs_regs_ops = {
.release = single_release,
};
-struct glamo_engine_reg_set {
- uint16_t reg;
- uint16_t mask_suspended;
- uint16_t mask_enabled;
-};
-
static void glamo_init_debugfs(struct glamo_core *glamo)
{
glamo->debugfs_dir = debugfs_create_dir("glamo3362", NULL);
@@ -414,6 +408,12 @@ static void glamo_exit_debugfs(struct glamo_core *glamo)
}
#endif
+struct glamo_engine_reg_set {
+ uint16_t reg;
+ uint16_t mask_suspended;
+ uint16_t mask_enabled;
+};
+
struct glamo_engine_desc {
const char *name;
uint16_t hostbus;
--
1.7.1.1
More information about the openmoko-kernel
mailing list