[PATCH] fix u32 vs. pm_message_t in drivers/
authorPavel Machek <pavel@ucw.cz>
Sat, 16 Apr 2005 22:25:35 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:35 +0000 (15:25 -0700)
-rc2-mm1 still contains few places where u32 and pm_message_t.  This fixes
drivers/serial [should change no code].

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/serial/amba-pl010.c
drivers/serial/imx.c
drivers/serial/pmac_zilog.c
drivers/serial/pxa.c
drivers/serial/s3c2410.c
drivers/serial/sa1100.c
drivers/serial/serial_txx9.c
drivers/serial/vr41xx_siu.c

index ac57fdc8711b0c48c4231fad048da355da9ad98e..484f6fb900b51feb5a90cb765aa1cd99da951f54 100644 (file)
@@ -772,7 +772,7 @@ static int pl010_remove(struct amba_device *dev)
        return 0;
 }
 
-static int pl010_suspend(struct amba_device *dev, u32 state)
+static int pl010_suspend(struct amba_device *dev, pm_message_t state)
 {
        struct uart_amba_port *uap = amba_get_drvdata(dev);
 
index d273134f9e6cc9cac5964996109350c191d0eb06..c682c6308cde1067d27ff6201341305e87f4ce6e 100644 (file)
@@ -825,7 +825,7 @@ static struct uart_driver imx_reg = {
        .cons           = IMX_CONSOLE,
 };
 
-static int serial_imx_suspend(struct device *_dev, u32 state, u32 level)
+static int serial_imx_suspend(struct device *_dev, pm_message_t state, u32 level)
 {
         struct imx_port *sport = dev_get_drvdata(_dev);
 
index 0a6b9f0ed23ff35c3aaf7452ba7bd3fd1f2f3498..85abd8a045e088cf2c6414aa52cf91fa1c22dba6 100644 (file)
@@ -1590,7 +1590,7 @@ static int pmz_detach(struct macio_dev *mdev)
 }
 
 
-static int pmz_suspend(struct macio_dev *mdev, u32 pm_state)
+static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state)
 {
        struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);
        struct uart_state *state;
index 68b25b2c26b1c5746c5fe055b3bc2fbed9c67d5d..51d8a49f4477bb6f23048b361e4ad367ecdb9758 100644 (file)
@@ -797,7 +797,7 @@ static struct uart_driver serial_pxa_reg = {
        .cons           = PXA_CONSOLE,
 };
 
-static int serial_pxa_suspend(struct device *_dev, u32 state, u32 level)
+static int serial_pxa_suspend(struct device *_dev, pm_message_t state, u32 level)
 {
         struct uart_pxa_port *sport = dev_get_drvdata(_dev);
 
index ffc61389614b62e02cd241e6602f1cc1464298bd..bd6782aeb8318367d7fb06f42593f5b5a6b5187e 100644 (file)
@@ -1156,7 +1156,7 @@ int s3c24xx_serial_remove(struct device *_dev)
 
 #ifdef CONFIG_PM
 
-int s3c24xx_serial_suspend(struct device *dev, u32 state, u32 level)
+int s3c24xx_serial_suspend(struct device *dev, pm_message_t state, u32 level)
 {
        struct uart_port *port = s3c24xx_dev_to_port(dev);
 
index 85f0af452f95a04256b831a115a0b908080c2c1e..086065210d1e07b3cb24a1f41596e282d920ed50 100644 (file)
@@ -854,7 +854,7 @@ static struct uart_driver sa1100_reg = {
        .cons                   = SA1100_CONSOLE,
 };
 
-static int sa1100_serial_suspend(struct device *_dev, u32 state, u32 level)
+static int sa1100_serial_suspend(struct device *_dev, pm_message_t state, u32 level)
 {
        struct sa1100_port *sport = dev_get_drvdata(_dev);
 
index dfc987301f1757654062c9dcf5ab78152cf64430..37b2ef297cbec3816b06d2a30ad588a80abbfdd1 100644 (file)
@@ -1095,7 +1095,7 @@ static void __devexit pciserial_txx9_remove_one(struct pci_dev *dev)
        }
 }
 
-static int pciserial_txx9_suspend_one(struct pci_dev *dev, u32 state)
+static int pciserial_txx9_suspend_one(struct pci_dev *dev, pm_message_t state)
 {
        int line = (int)(long)pci_get_drvdata(dev);
 
index ebc59c27a85cff206aa16ab8ecc7455ea25611c5..307886199f2f6f1301d6aa240b1f3263e9ec8a90 100644 (file)
@@ -1026,7 +1026,7 @@ static int siu_remove(struct device *dev)
        return 0;
 }
 
-static int siu_suspend(struct device *dev, u32 state, u32 level)
+static int siu_suspend(struct device *dev, pm_message_t state, u32 level)
 {
        struct uart_port *port;
        int i;