Commit 842363ff authored by Eugene Surovegin's avatar Eugene Surovegin Committed by Linus Torvalds

[PATCH] ppc32: fix ocp_device_suspend to use pm_message_t instead of u32

Recent "u32 -> pm_message_t" change triggered hidden bug in
ocp_device_suspend.  Fix it to correctly use pm_message_t instead of u32.
Signed-off-by: default avatarEugene Surovegin <ebs@ebshome.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4706df3d
...@@ -165,7 +165,7 @@ ocp_device_remove(struct device *dev) ...@@ -165,7 +165,7 @@ ocp_device_remove(struct device *dev)
} }
static int static int
ocp_device_suspend(struct device *dev, u32 state) ocp_device_suspend(struct device *dev, pm_message_t state)
{ {
struct ocp_device *ocp_dev = to_ocp_dev(dev); struct ocp_device *ocp_dev = to_ocp_dev(dev);
struct ocp_driver *ocp_drv = to_ocp_drv(dev->driver); struct ocp_driver *ocp_drv = to_ocp_drv(dev->driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment