crypto: ccree - make cc_pm_put_suspend() void
cc_pm_put_suspend() return value was never checked and is not useful. Turn it into a void functions. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committed by
Herbert Xu

parent
33c4b31098
commit
bc88606ac0
@@ -73,17 +73,14 @@ int cc_pm_get(struct device *dev)
|
||||
return (rc == 1 ? 0 : rc);
|
||||
}
|
||||
|
||||
int cc_pm_put_suspend(struct device *dev)
|
||||
void cc_pm_put_suspend(struct device *dev)
|
||||
{
|
||||
int rc = 0;
|
||||
struct cc_drvdata *drvdata = dev_get_drvdata(dev);
|
||||
|
||||
if (drvdata->pm_on) {
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
rc = pm_runtime_put_autosuspend(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
bool cc_pm_is_dev_suspended(struct device *dev)
|
||||
|
Reference in New Issue
Block a user