[PATCH] ppc32: fix ocp_device_suspend to use pm_message_t instead of u32
authorEugene Surovegin <ebs@ebshome.net>
Tue, 6 Sep 2005 22:16:13 +0000 (15:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:15 +0000 (16:57 -0700)
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>
arch/ppc/syslib/ocp.c

index e5fd2ae503ea7c2240c373f022ffa0c989ad52e3..9ccce438bd7af7ffc1dce54b32377a5975140bcd 100644 (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);