Merge "devfreq: return error code when governor start fails"

This commit is contained in:
qctecmdr Service 2019-01-15 00:54:35 -08:00 committed by Gerrit - the friendly Code Review server
commit 6cb9e436ef

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -195,7 +195,8 @@ static int gov_start(struct devfreq *df)
node->orig_data = df->data;
df->data = node;
if (start_monitor(df))
ret = start_monitor(df);
if (ret)
goto err_start;
ret = sysfs_create_group(&df->dev.kobj, node->attr_grp);