[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: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Eugene Surovegin 2005-09-06 15:16:13 -07:00 committed by Linus Torvalds
parent 4706df3d3c
commit 842363ff5f

View file

@ -165,7 +165,7 @@ ocp_device_remove(struct device *dev)
}
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_driver *ocp_drv = to_ocp_drv(dev->driver);