diff options
| author | Pavel Machek <pavel@ucw.cz> | 2005-07-07 20:56:40 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:23:43 -0400 |
| commit | 2a569579be87b5ba61f9b6c54fd5f9f307c53962 (patch) | |
| tree | 6cc12f2384d235e87941a85a925618c10b419c7f /drivers/message/fusion/mptbase.c | |
| parent | e8af300c3bd87b2310f1e7a642f37e0fe49a754b (diff) | |
[PATCH] pm: more u32 vs. pm_message_t fixes
Few more u32 vs. pm_message_t fixes.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
| -rw-r--r-- | drivers/message/fusion/mptbase.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 8b623278ccd2..ffbe6f4720e1 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
| @@ -1363,19 +1363,7 @@ mpt_suspend(struct pci_dev *pdev, pm_message_t state) | |||
| 1363 | u32 device_state; | 1363 | u32 device_state; |
| 1364 | MPT_ADAPTER *ioc = pci_get_drvdata(pdev); | 1364 | MPT_ADAPTER *ioc = pci_get_drvdata(pdev); |
| 1365 | 1365 | ||
| 1366 | switch(state) | 1366 | device_state=pci_choose_state(pdev, state); |
| 1367 | { | ||
| 1368 | case 1: /* S1 */ | ||
| 1369 | device_state=1; /* D1 */; | ||
| 1370 | break; | ||
| 1371 | case 3: /* S3 */ | ||
| 1372 | case 4: /* S4 */ | ||
| 1373 | device_state=3; /* D3 */; | ||
| 1374 | break; | ||
| 1375 | default: | ||
| 1376 | return -EAGAIN /*FIXME*/; | ||
| 1377 | break; | ||
| 1378 | } | ||
| 1379 | 1367 | ||
| 1380 | printk(MYIOC_s_INFO_FMT | 1368 | printk(MYIOC_s_INFO_FMT |
| 1381 | "pci-suspend: pdev=0x%p, slot=%s, Entering operating state [D%d]\n", | 1369 | "pci-suspend: pdev=0x%p, slot=%s, Entering operating state [D%d]\n", |
