diff options
author | Jonghwan Choi <jhbird.choi@samsung.com> | 2011-07-26 19:08:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 19:49:41 -0400 |
commit | fc92805a8e25e5e2b0ba7c413cc15d9f05962ee8 (patch) | |
tree | 841ba603726e0168d0cddaf528e9e5c472a7fed1 /drivers | |
parent | adc400f69053b16756ff3b00daa64884c8df0787 (diff) |
drivers/base/power/opp.c: fix dev_opp initial value
Dev_opp initial value shoule be ERR_PTR(), IS_ERR() is used to check
error.
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/power/opp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index 5cc12322ef32..b23de185cb04 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c | |||
@@ -453,7 +453,7 @@ int opp_add(struct device *dev, unsigned long freq, unsigned long u_volt) | |||
453 | static int opp_set_availability(struct device *dev, unsigned long freq, | 453 | static int opp_set_availability(struct device *dev, unsigned long freq, |
454 | bool availability_req) | 454 | bool availability_req) |
455 | { | 455 | { |
456 | struct device_opp *tmp_dev_opp, *dev_opp = NULL; | 456 | struct device_opp *tmp_dev_opp, *dev_opp = ERR_PTR(-ENODEV); |
457 | struct opp *new_opp, *tmp_opp, *opp = ERR_PTR(-ENODEV); | 457 | struct opp *new_opp, *tmp_opp, *opp = ERR_PTR(-ENODEV); |
458 | int r = 0; | 458 | int r = 0; |
459 | 459 | ||