diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index acc0f55742c3..8e94255a45e7 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -1008,8 +1008,8 @@ static int __trace_add_event_call(struct ftrace_event_call *call) | |||
1008 | if (!call->name) | 1008 | if (!call->name) |
1009 | return -EINVAL; | 1009 | return -EINVAL; |
1010 | 1010 | ||
1011 | if (call->raw_init) { | 1011 | if (call->class->raw_init) { |
1012 | ret = call->raw_init(call); | 1012 | ret = call->class->raw_init(call); |
1013 | if (ret < 0) { | 1013 | if (ret < 0) { |
1014 | if (ret != -ENOSYS) | 1014 | if (ret != -ENOSYS) |
1015 | pr_warning("Could not initialize trace " | 1015 | pr_warning("Could not initialize trace " |
@@ -1170,8 +1170,8 @@ static void trace_module_add_events(struct module *mod) | |||
1170 | /* The linker may leave blanks */ | 1170 | /* The linker may leave blanks */ |
1171 | if (!call->name) | 1171 | if (!call->name) |
1172 | continue; | 1172 | continue; |
1173 | if (call->raw_init) { | 1173 | if (call->class->raw_init) { |
1174 | ret = call->raw_init(call); | 1174 | ret = call->class->raw_init(call); |
1175 | if (ret < 0) { | 1175 | if (ret < 0) { |
1176 | if (ret != -ENOSYS) | 1176 | if (ret != -ENOSYS) |
1177 | pr_warning("Could not initialize trace " | 1177 | pr_warning("Could not initialize trace " |
@@ -1324,8 +1324,8 @@ static __init int event_trace_init(void) | |||
1324 | /* The linker may leave blanks */ | 1324 | /* The linker may leave blanks */ |
1325 | if (!call->name) | 1325 | if (!call->name) |
1326 | continue; | 1326 | continue; |
1327 | if (call->raw_init) { | 1327 | if (call->class->raw_init) { |
1328 | ret = call->raw_init(call); | 1328 | ret = call->class->raw_init(call); |
1329 | if (ret < 0) { | 1329 | if (ret < 0) { |
1330 | if (ret != -ENOSYS) | 1330 | if (ret != -ENOSYS) |
1331 | pr_warning("Could not initialize trace " | 1331 | pr_warning("Could not initialize trace " |