]> nv-tegra.nvidia Code Review - linux-3.10.git/commitdiff
[PATCH] Fix u32 vs. pm_message_t in drivers/char
authorPavel Machek <pavel@ucw.cz>
Sat, 16 Apr 2005 22:25:24 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:24 +0000 (15:25 -0700)
Here are fixes for drivers/char.

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/char/agp/efficeon-agp.c
drivers/char/s3c2410-rtc.c
drivers/char/sonypi.c
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h

index 52c0a097118cda2458f734bde7cc54a86389fdff..2a87cecdc912b8a7c75398f366a7fca68e9de984 100644 (file)
@@ -408,7 +408,7 @@ static void __devexit agp_efficeon_remove(struct pci_dev *pdev)
        agp_put_bridge(bridge);
 }
 
-static int agp_efficeon_suspend(struct pci_dev *dev, u32 state)
+static int agp_efficeon_suspend(struct pci_dev *dev, pm_message_t state)
 {
        return 0;
 }
index ec666395a26cb33009fb75aa1cc68c10f5173a58..8e61be34a1d328c5a948a646504ad65629eaef62 100644 (file)
@@ -515,7 +515,7 @@ static struct timespec s3c2410_rtc_delta;
 
 static int ticnt_save;
 
-static int s3c2410_rtc_suspend(struct device *dev, u32 state, u32 level)
+static int s3c2410_rtc_suspend(struct device *dev, pm_message_t state, u32 level)
 {
        struct rtc_time tm;
        struct timespec time;
index f97a8a9751a0d2da245e023013f3813a8966f72d..c812191417c36aac6190f7e94e997ca7f6c3beac 100644 (file)
@@ -1103,7 +1103,7 @@ static int sonypi_disable(void)
 #ifdef CONFIG_PM
 static int old_camera_power;
 
-static int sonypi_suspend(struct device *dev, u32 state, u32 level)
+static int sonypi_suspend(struct device *dev, pm_message_t state, u32 level)
 {
        if (level == SUSPEND_DISABLE) {
                old_camera_power = sonypi_device.camera_power;
index 8318268169d67acbe2c39e4fdfee8881203a5031..ca36087d4f8a739774c51a39d7485cb4046c4082 100644 (file)
@@ -567,7 +567,7 @@ static u8 savestate[] = {
  * We are about to suspend. Save the TPM state
  * so that it can be restored.
  */
-int tpm_pm_suspend(struct pci_dev *pci_dev, u32 pm_state)
+int tpm_pm_suspend(struct pci_dev *pci_dev, pm_message_t pm_state)
 {
        struct tpm_chip *chip = pci_get_drvdata(pci_dev);
        if (chip == NULL)
index 575cf5aed41a572286bbc96f942356c72567edac..de0c796fce8000004b9d0d1eabc9b08cd875a16b 100644 (file)
@@ -89,5 +89,5 @@ extern ssize_t tpm_write(struct file *, const char __user *, size_t,
                         loff_t *);
 extern ssize_t tpm_read(struct file *, char __user *, size_t, loff_t *);
 extern void __devexit tpm_remove(struct pci_dev *);
-extern int tpm_pm_suspend(struct pci_dev *, u32);
+extern int tpm_pm_suspend(struct pci_dev *, pm_message_t);
 extern int tpm_pm_resume(struct pci_dev *);