Skip to content

Commit

Permalink
hp_accel: Ignore the error from lis3lv02d_poweron() at resume
Browse files Browse the repository at this point in the history
commit 7783819 upstream.

The error in lis3lv02_poweron() is harmless in the resume path, so
we should ignore it. It is inline with the other usages of lis3lv02_poweron()
and matches the 3.0 code for this routine. This patch is in suse git and
might have missed making it into the mainline.
opensuse - commit id: 66ccdac

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
Signed-off-by: Kamal Mostafa <[email protected]>
  • Loading branch information
Shuah Khan authored and kamalmostafa committed May 24, 2013
1 parent 0720957 commit 135be9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/platform/x86/hp_accel.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ static int lis3lv02d_suspend(struct device *dev)

static int lis3lv02d_resume(struct device *dev)
{
return lis3lv02d_poweron(&lis3_dev);
lis3lv02d_poweron(&lis3_dev);
return 0;
}

static SIMPLE_DEV_PM_OPS(hp_accel_pm, lis3lv02d_suspend, lis3lv02d_resume);
Expand Down

0 comments on commit 135be9f

Please sign in to comment.