]> err.no Git - linux-2.6/commitdiff
[PATCH] fix u32 vs. pm_message_t in drivers/message
authorPavel Machek <pavel@ucw.cz>
Sat, 16 Apr 2005 22:25:28 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:28 +0000 (15:25 -0700)
This fixes u32 vs. pm_message_t in drivers/message.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/message/fusion/mptbase.c
drivers/message/fusion/mptbase.h
drivers/message/fusion/mptscsih.c

index 942cc1c2a186cf51a232c59ca46cd60ba93b2e37..8b22630f1aef18c8b400b6a2cebf42b736e0b583 100644 (file)
@@ -1429,7 +1429,7 @@ mptbase_shutdown(struct device * dev)
  *
  */
 static int
-mptbase_suspend(struct pci_dev *pdev, u32 state)
+mptbase_suspend(struct pci_dev *pdev, pm_message_t state)
 {
        u32 device_state;
        MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
index be673070bc34e122b09b215cfd97b505fc182502..6d16acc7a179e6e1f8ba83a44cd696a53e0497f8 100644 (file)
@@ -215,7 +215,7 @@ struct mpt_pci_driver{
        void (*shutdown) (struct device * dev);
 #ifdef CONFIG_PM
        int  (*resume) (struct pci_dev *dev);
-       int  (*suspend) (struct pci_dev *dev, u32 state);
+       int  (*suspend) (struct pci_dev *dev, pm_message_t state);
 #endif
 };
 
index c98d6257ec02f7e2e1b7ff9eb1a340017e278096..3a3ef127df040c6ac6f7cb593223e515d1a2fa3c 100644 (file)
@@ -220,7 +220,7 @@ static int  mptscsih_probe (struct pci_dev *, const struct pci_device_id *);
 static void mptscsih_remove(struct pci_dev *);
 static void mptscsih_shutdown(struct device *);
 #ifdef CONFIG_PM
-static int mptscsih_suspend(struct pci_dev *pdev, u32 state);
+static int mptscsih_suspend(struct pci_dev *pdev, pm_message_t state);
 static int mptscsih_resume(struct pci_dev *pdev);
 #endif
 
@@ -1389,7 +1389,7 @@ mptscsih_shutdown(struct device * dev)
  *
  */
 static int
-mptscsih_suspend(struct pci_dev *pdev, u32 state)
+mptscsih_suspend(struct pci_dev *pdev, pm_message_t state)
 {
        mptscsih_shutdown(&pdev->dev);
        return 0;