From: Eugene Surovegin Date: Tue, 6 Sep 2005 22:16:13 +0000 (-0700) Subject: [PATCH] ppc32: fix ocp_device_suspend to use pm_message_t instead of u32 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=842363ff5fd79ce75c311175ea832901e2b2d40e;p=deliverable%2Flinux.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/ppc/syslib/ocp.c b/arch/ppc/syslib/ocp.c index e5fd2ae503ea..9ccce438bd7a 100644 --- a/arch/ppc/syslib/ocp.c +++ b/arch/ppc/syslib/ocp.c @@ -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);