/* Unregister a function that was added to be called by ftrace profiling.  */
int unregister_ftrace_function(struct ftrace_ops *ops)
/* Unregister a function that was added to be called by ftrace profiling.  */
int unregister_ftrace_function(struct ftrace_ops *ops)
{
	int ret;
	mutex_lock(&ftrace_lock);
	ret = __unregister_ftrace_function(ops);
	ftrace_shutdown(0);
	mutex_unlock(&ftrace_lock);
	return ret;
}