Skip to content

Commit

Permalink
PM / core: Remove unused initcall_debug_report() arguments
Browse files Browse the repository at this point in the history
Commit e8bca47 (PM / sleep: trace events for device PM callbacks)
removed the only uses of "state" and "info" from initcall_debug_report().

Remove the now-unused arguments completely.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Bjorn Helgaas authored and Rafael J. Wysocki committed May 10, 2018
1 parent 494fd7b commit 147f297
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/base/power/main.c
Original file line number Diff line number Diff line change
@@ -207,8 +207,7 @@ static ktime_t initcall_debug_start(struct device *dev)
}

static void initcall_debug_report(struct device *dev, ktime_t calltime,
int error, pm_message_t state,
const char *info)
int error)
{
ktime_t rettime;
s64 nsecs;
@@ -454,7 +453,7 @@ static int dpm_run_callback(pm_callback_t cb, struct device *dev,
trace_device_pm_callback_end(dev, error);
suspend_report_result(cb, error);

initcall_debug_report(dev, calltime, error, state, info);
initcall_debug_report(dev, calltime, error);

return error;
}
@@ -1671,7 +1670,7 @@ static int legacy_suspend(struct device *dev, pm_message_t state,
trace_device_pm_callback_end(dev, error);
suspend_report_result(cb, error);

initcall_debug_report(dev, calltime, error, state, info);
initcall_debug_report(dev, calltime, error);

return error;
}

0 comments on commit 147f297

Please sign in to comment.