diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-07 13:24:20 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-07 13:24:20 -0500 |
commit | 230b4b376e6b860275dccb1c00e7c213ed7fe311 (patch) | |
tree | 784dcff11a02732a1c78cc245297d83ccb2f7e37 /drivers/devfreq/devfreq.c | |
parent | a4aaf2e0dfcc05578e8c822fce975a7d5836dc7f (diff) | |
parent | 1c5054d9e34b7f8c57e2db1ce02ee90e643c0314 (diff) |
Merge branch 'pm-devfreq'
* pm-devfreq:
PM / devfreq: create_freezable_workqueue() doesn't return an ERR_PTR
PM / devfreq: Remove duplicate header file inclusion in exynos5_bus.c
PM / devfreq: Use devm_* APIs in exynos5_bus.c
PM / devfreq: Remove redundant platform_set_drvdata() in exynos5_bus.c
PM / devfreq: Fix incorrect usage of IS_ERR_OR_NULL in exynos5_bus.c
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r-- | drivers/devfreq/devfreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 2e23b12c350b..a0b2f7e0eedb 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c | |||
@@ -993,10 +993,10 @@ static int __init devfreq_init(void) | |||
993 | } | 993 | } |
994 | 994 | ||
995 | devfreq_wq = create_freezable_workqueue("devfreq_wq"); | 995 | devfreq_wq = create_freezable_workqueue("devfreq_wq"); |
996 | if (IS_ERR(devfreq_wq)) { | 996 | if (!devfreq_wq) { |
997 | class_destroy(devfreq_class); | 997 | class_destroy(devfreq_class); |
998 | pr_err("%s: couldn't create workqueue\n", __FILE__); | 998 | pr_err("%s: couldn't create workqueue\n", __FILE__); |
999 | return PTR_ERR(devfreq_wq); | 999 | return -ENOMEM; |
1000 | } | 1000 | } |
1001 | devfreq_class->dev_groups = devfreq_groups; | 1001 | devfreq_class->dev_groups = devfreq_groups; |
1002 | 1002 | ||