Skip to content

Commit

Permalink
Merge remote-tracking branches 'spi/fix/img-spfi' and 'spi/fix/msiof'…
Browse files Browse the repository at this point in the history
… into spi-linus
  • Loading branch information
Mark Brown committed Dec 24, 2014
2 parents 76fe5e9 + 0157605 commit ee4629f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/spi/spi-sh-msiof.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@ static int sh_msiof_spi_setup(struct spi_device *spi)
struct device_node *np = spi->master->dev.of_node;
struct sh_msiof_spi_priv *p = spi_master_get_devdata(spi->master);

pm_runtime_get_sync(&p->pdev->dev);

if (!np) {
/*
* Use spi->controller_data for CS (same strategy as spi_gpio),
Expand All @@ -498,6 +500,9 @@ static int sh_msiof_spi_setup(struct spi_device *spi)
if (spi->cs_gpio >= 0)
gpio_set_value(spi->cs_gpio, !(spi->mode & SPI_CS_HIGH));


pm_runtime_put_sync(&p->pdev->dev);

return 0;
}

Expand Down

0 comments on commit ee4629f

Please sign in to comment.