diff options
author | David Brownell <david-b@pacbell.net> | 2008-02-06 04:38:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 13:41:11 -0500 |
commit | 5beec4aa2ac261b0b4992fb41df40a7ab91e4fad (patch) | |
tree | 98585b3c1e07a23e6ff82cc4df0f3479a0098527 /drivers/spi/spi_imx.c | |
parent | 26fdc1f0df22dd14fd4161ccb2fad94a3a938c48 (diff) |
spi: remove more dev->power.power_state usage
Remove some more references to dev->power.power_state. That field is overdue
for removal, but we can't do that while it's still referenced in the kernel.
The only reason to update it was to make the /sys/devices/.../power/state
files (now removed) work better.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi/spi_imx.c')
-rw-r--r-- | drivers/spi/spi_imx.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index 639963eb1ac1..1b0647124933 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c | |||
@@ -1686,17 +1686,6 @@ static void spi_imx_shutdown(struct platform_device *pdev) | |||
1686 | } | 1686 | } |
1687 | 1687 | ||
1688 | #ifdef CONFIG_PM | 1688 | #ifdef CONFIG_PM |
1689 | static int suspend_devices(struct device *dev, void *pm_message) | ||
1690 | { | ||
1691 | pm_message_t *state = pm_message; | ||
1692 | |||
1693 | if (dev->power.power_state.event != state->event) { | ||
1694 | dev_warn(dev, "pm state does not match request\n"); | ||
1695 | return -1; | ||
1696 | } | ||
1697 | |||
1698 | return 0; | ||
1699 | } | ||
1700 | 1689 | ||
1701 | static int spi_imx_suspend(struct platform_device *pdev, pm_message_t state) | 1690 | static int spi_imx_suspend(struct platform_device *pdev, pm_message_t state) |
1702 | { | 1691 | { |