diff options
Diffstat (limited to 'driver/gator_events_mali_t6xx.c')
-rw-r--r-- | driver/gator_events_mali_t6xx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver/gator_events_mali_t6xx.c b/driver/gator_events_mali_t6xx.c index 76f14ee..e56ba84 100644 --- a/driver/gator_events_mali_t6xx.c +++ b/driver/gator_events_mali_t6xx.c | |||
@@ -32,6 +32,8 @@ | |||
32 | #error MALI_SUPPORT set to an invalid device code: expecting MALI_T6xx | 32 | #error MALI_SUPPORT set to an invalid device code: expecting MALI_T6xx |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | static const char mali_name[] = "Mali-T6xx"; | ||
36 | |||
35 | /* Counters for Mali-T6xx: | 37 | /* Counters for Mali-T6xx: |
36 | * | 38 | * |
37 | * - Timeline events | 39 | * - Timeline events |
@@ -292,7 +294,6 @@ static int create_files(struct super_block *sb, struct dentry *root) | |||
292 | * Create the filesystem for all events | 294 | * Create the filesystem for all events |
293 | */ | 295 | */ |
294 | int counter_index = 0; | 296 | int counter_index = 0; |
295 | const char *mali_name = gator_mali_get_mali_name(); | ||
296 | mali_profiling_control_type *mali_control; | 297 | mali_profiling_control_type *mali_control; |
297 | 298 | ||
298 | for (event = FIRST_TIMELINE_EVENT; event < FIRST_TIMELINE_EVENT + NUMBER_OF_TIMELINE_EVENTS; event++) { | 299 | for (event = FIRST_TIMELINE_EVENT; event < FIRST_TIMELINE_EVENT + NUMBER_OF_TIMELINE_EVENTS; event++) { |
@@ -317,7 +318,7 @@ static int create_files(struct super_block *sb, struct dentry *root) | |||
317 | } | 318 | } |
318 | 319 | ||
319 | mali_control = symbol_get(_mali_profiling_control); | 320 | mali_control = symbol_get(_mali_profiling_control); |
320 | if (mali_control) { | 321 | if (mali_control) { |
321 | if (gator_mali_create_file_system(mali_name, "Filmstrip_cnt0", sb, root, &counters[FILMSTRIP], &filmstrip_event) != 0) { | 322 | if (gator_mali_create_file_system(mali_name, "Filmstrip_cnt0", sb, root, &counters[FILMSTRIP], &filmstrip_event) != 0) { |
322 | return -1; | 323 | return -1; |
323 | } | 324 | } |