Skip to content

Commit

Permalink
PM / devfreq: event: testing the wrong variable
Browse files Browse the repository at this point in the history
There is a typo here so we test "edev" but we intended to test
"edev[i]".

Fixes: f262f28 ('PM / devfreq: event: Add devfreq_event class')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Dan Carpenter authored and Rafael J. Wysocki committed Feb 12, 2015
1 parent 9835e58 commit 04a695e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/devfreq/event/exynos-ppmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ static int exynos_ppmu_probe(struct platform_device *pdev)

for (i = 0; i < info->num_events; i++) {
edev[i] = devm_devfreq_event_add_edev(&pdev->dev, &desc[i]);
if (IS_ERR(edev)) {
ret = PTR_ERR(edev);
if (IS_ERR(edev[i])) {
ret = PTR_ERR(edev[i]);
dev_err(&pdev->dev,
"failed to add devfreq-event device\n");
goto err;
Expand Down

0 comments on commit 04a695e

Please sign in to comment.