Skip to content

Commit

Permalink
ASoC: fsi: Remove unneeded empty runtime PM callbacks
Browse files Browse the repository at this point in the history
The runtime PM core no longer requires any callbacks so don't provide
empty ones for it any more.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 31, 2012
1 parent 69edea8 commit bc122e3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1408,23 +1408,9 @@ static int fsi_resume(struct device *dev)
return 0;
}

static int fsi_runtime_nop(struct device *dev)
{
/* Runtime PM callback shared between ->runtime_suspend()
* and ->runtime_resume(). Simply returns success.
*
* This driver re-initializes all registers after
* pm_runtime_get_sync() anyway so there is no need
* to save and restore registers here.
*/
return 0;
}

static struct dev_pm_ops fsi_pm_ops = {
.suspend = fsi_suspend,
.resume = fsi_resume,
.runtime_suspend = fsi_runtime_nop,
.runtime_resume = fsi_runtime_nop,
};

static struct fsi_core fsi1_core = {
Expand Down

0 comments on commit bc122e3

Please sign in to comment.