diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-05-14 20:50:56 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:47:51 +0900 |
commit | 2b8e5e57e307004f4dd164bc4e327977c9727f28 (patch) | |
tree | e4d05bbc4e36675bf4de2635653a51a214efe0f6 /drivers/devfreq | |
parent | ed7277f4f07d5c6d637d8702a1772fa90f1e1617 (diff) | |
download | linux-3.10-2b8e5e57e307004f4dd164bc4e327977c9727f28.tar.gz linux-3.10-2b8e5e57e307004f4dd164bc4e327977c9727f28.tar.bz2 linux-3.10-2b8e5e57e307004f4dd164bc4e327977c9727f28.zip |
PM / devfreq: create_freezable_workqueue() doesn't return an ERR_PTR
The create_freezable_workqueue() function returns a NULL on error and
not an ERR_PTR.
Change-Id: If805c1068d00d3a2e6897c890475e35c780ef8c7
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-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 44c407986f6..250b22df281 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -983,10 +983,10 @@ static int __init devfreq_init(void) } devfreq_wq = create_freezable_workqueue("devfreq_wq"); - if (IS_ERR(devfreq_wq)) { + if (!devfreq_wq) { class_destroy(devfreq_class); pr_err("%s: couldn't create workqueue\n", __FILE__); - return PTR_ERR(devfreq_wq); + return -ENOMEM; } devfreq_class->dev_attrs = devfreq_attrs; |