|
@@ -53,7 +53,7 @@ static struct devfreq *find_device_devfreq(struct device *dev)
|
|
{
|
|
{
|
|
struct devfreq *tmp_devfreq;
|
|
struct devfreq *tmp_devfreq;
|
|
|
|
|
|
- if (unlikely(IS_ERR_OR_NULL(dev))) {
|
|
|
|
|
|
+ if (IS_ERR_OR_NULL(dev)) {
|
|
pr_err("DEVFREQ: %s: Invalid parameters\n", __func__);
|
|
pr_err("DEVFREQ: %s: Invalid parameters\n", __func__);
|
|
return ERR_PTR(-EINVAL);
|
|
return ERR_PTR(-EINVAL);
|
|
}
|
|
}
|
|
@@ -133,7 +133,7 @@ static struct devfreq_governor *find_devfreq_governor(const char *name)
|
|
{
|
|
{
|
|
struct devfreq_governor *tmp_governor;
|
|
struct devfreq_governor *tmp_governor;
|
|
|
|
|
|
- if (unlikely(IS_ERR_OR_NULL(name))) {
|
|
|
|
|
|
+ if (IS_ERR_OR_NULL(name)) {
|
|
pr_err("DEVFREQ: %s: Invalid parameters\n", __func__);
|
|
pr_err("DEVFREQ: %s: Invalid parameters\n", __func__);
|
|
return ERR_PTR(-EINVAL);
|
|
return ERR_PTR(-EINVAL);
|
|
}
|
|
}
|