hp-wmi: Switch driver to dev_pm_ops
authorFrans Pop <elendil@planet.nl>
Thu, 20 Aug 2009 18:38:13 +0000 (20:38 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 14 Sep 2009 18:26:59 +0000 (20:26 +0200)
commit8dd2b42665f9d4ca4fded99f048631b60f669dc5
treebcc098262d8c5f93505150763aa9be3fd752920a
parentc90cd332d3dbf9fc78934b8bda271c1f909216ea
hp-wmi: Switch driver to dev_pm_ops

Gets rid of the following warning:

Platform driver 'hp-wmi' needs updating - please use dev_pm_ops

I tested that the resume handler still works on my HP 2510p notebook.

[rjw: Fixed up the definition of hp_wmi_pm_ops.]

Signed-off-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/platform/x86/hp-wmi.c