Skip to content

Commit

Permalink
[PATCH] fix u32 vs. pm_message_t in rest of the tree
Browse files Browse the repository at this point in the history
This fixes u32 vs.  pm_message_t confusion in remaining places.  Fortunately
there's few of them.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
pavelmachek authored and Linus Torvalds committed Apr 16, 2005
1 parent 9bfd354 commit 3bfffd9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arch/sh/kernel/cpu/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static int sh_bus_match(struct device *dev, struct device_driver *drv)
return shdev->dev_id == shdrv->dev_id;
}

static int sh_bus_suspend(struct device *dev, u32 state)
static int sh_bus_suspend(struct device *dev, pm_message_t state)
{
struct sh_dev *shdev = to_sh_dev(dev);
struct sh_driver *shdrv = to_sh_driver(dev->driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/pci/sc1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ typedef struct sc1200_saved_state_s {
} sc1200_saved_state_t;


static int sc1200_suspend (struct pci_dev *dev, u32 state)
static int sc1200_suspend (struct pci_dev *dev, pm_message_t state)
{
ide_hwif_t *hwif = NULL;

Expand Down
2 changes: 1 addition & 1 deletion drivers/macintosh/via-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,7 @@ pmu_polled_request(struct adb_request *req)

static int pmu_sys_suspended = 0;

static int pmu_sys_suspend(struct sys_device *sysdev, u32 state)
static int pmu_sys_suspend(struct sys_device *sysdev, pm_message_t state)
{
if (state != PM_SUSPEND_DISK || pmu_sys_suspended)
return 0;
Expand Down
2 changes: 1 addition & 1 deletion include/asm-sh/bus-sh.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct sh_driver {
unsigned int bus_id;
int (*probe)(struct sh_dev *);
int (*remove)(struct sh_dev *);
int (*suspend)(struct sh_dev *, u32);
int (*suspend)(struct sh_dev *, pm_message_t);
int (*resume)(struct sh_dev *);
};

Expand Down
2 changes: 1 addition & 1 deletion include/linux/mmc/host.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ extern void mmc_free_host(struct mmc_host *);
#define mmc_priv(x) ((void *)((x) + 1))
#define mmc_dev(x) ((x)->dev)

extern int mmc_suspend_host(struct mmc_host *, u32);
extern int mmc_suspend_host(struct mmc_host *, pm_message_t);
extern int mmc_resume_host(struct mmc_host *);

extern void mmc_detect_change(struct mmc_host *);
Expand Down
2 changes: 1 addition & 1 deletion sound/oss/cs46xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3640,7 +3640,7 @@ static int cs46xx_restart_part(struct cs_card *card)

static void cs461x_reset(struct cs_card *card);
static void cs461x_proc_stop(struct cs_card *card);
static int cs46xx_suspend(struct cs_card *card, u32 state)
static int cs46xx_suspend(struct cs_card *card, pm_message_t state)
{
unsigned int tmp;
CS_DBGOUT(CS_PM | CS_FUNCTION, 4,
Expand Down

0 comments on commit 3bfffd9

Please sign in to comment.