diff options
author | Adam Lussier <adam.lussier@timesys.com> | 2013-02-25 17:19:04 -0500 |
---|---|---|
committer | Adam Lussier <adam.lussier@timesys.com> | 2013-02-25 17:19:04 -0500 |
commit | f962cbcefdfad22ffff41e19ad4c5ff58815c05c (patch) | |
tree | e9424582f1fdc92d360ff58c831ddf801a268e3f /drivers/spi | |
parent | 15f55e0b22f8953b56fb5d6bdf8b770228f2f449 (diff) | |
parent | 16af5ee7d9556c47b332788e4107cbed5ee7ec10 (diff) |
Merge remote-tracking branch 'github/3.0-pcm052' into 3.0-pcm0523.0-pcm052-ts2
Release 3.0-ts2: enable USB support for the phyCORE Vybrid
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_mvf_dspi.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/drivers/spi/spi_mvf_dspi.c b/drivers/spi/spi_mvf_dspi.c index 21dc672975be..a394659a3b02 100644 --- a/drivers/spi/spi_mvf_dspi.c +++ b/drivers/spi/spi_mvf_dspi.c @@ -1033,34 +1033,12 @@ static void spi_mvf_shutdown(struct platform_device *pdev) #ifdef CONFIG_PM -static int suspend_devices(struct device *dev, void *pm_message) -{ - pm_message_t *state = pm_message; - - if (dev->power.power_state.event != state->event) { - dev_warn(dev, "pm state does not match request\n"); - return -1; - } - - return 0; -} - static int spi_mvf_suspend(struct platform_device *pdev, pm_message_t state) { struct spi_mvf_data *spi_mvf = platform_get_drvdata(pdev); - int ret = 0; - - /* Check all childern for current power state */ - if (device_for_each_child(&pdev->dev, - &state, suspend_devices) != 0) { - dev_warn(&pdev->dev, "suspend aborted\n"); - return -1; - } - ret = stop_queue(spi_mvf); - if (ret != 0) - return ret; + clk_disable(spi_mvf->clk); return 0; } @@ -1068,14 +1046,8 @@ static int spi_mvf_suspend(struct platform_device *pdev, static int spi_mvf_resume(struct platform_device *pdev) { struct spi_mvf_data *spi_mvf = platform_get_drvdata(pdev); - int ret = 0; - /* Start the queue running */ - ret = start_queue(spi_mvf); - if (ret != 0) { - dev_err(&pdev->dev, "problem starting queue (%d)\n", ret); - return ret; - } + clk_enable(spi_mvf->clk); return 0; } |