Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365206
b: refs/heads/master
c: 4fbb82a
h: refs/heads/master
v: v3
  • Loading branch information
Jonas Gorski authored and Mark Brown committed Mar 12, 2013
1 parent 18977b6 commit c12bcb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19533314f9fcb52b619a1513491b691a67b40721
refs/heads/master: 4fbb82a76db3ef0ec8f5d2e01e288b7821eff687
10 changes: 5 additions & 5 deletions trunk/drivers/spi/spi-bcm63xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ static int bcm63xx_spi_probe(struct platform_device *pdev)
}

/* Initialize hardware */
clk_enable(bs->clk);
clk_prepare_enable(bs->clk);
bcm_spi_writeb(bs, SPI_INTR_CLEAR_ALL, SPI_INT_STATUS);

/* register and we are done */
Expand All @@ -509,7 +509,7 @@ static int bcm63xx_spi_probe(struct platform_device *pdev)
return 0;

out_clk_disable:
clk_disable(clk);
clk_disable_unprepare(clk);
out_err:
platform_set_drvdata(pdev, NULL);
spi_master_put(master);
Expand All @@ -530,7 +530,7 @@ static int bcm63xx_spi_remove(struct platform_device *pdev)
bcm_spi_writeb(bs, 0, SPI_INT_MASK);

/* HW shutdown */
clk_disable(bs->clk);
clk_disable_unprepare(bs->clk);
clk_put(bs->clk);

platform_set_drvdata(pdev, 0);
Expand All @@ -549,7 +549,7 @@ static int bcm63xx_spi_suspend(struct device *dev)

spi_master_suspend(master);

clk_disable(bs->clk);
clk_disable_unprepare(bs->clk);

return 0;
}
Expand All @@ -560,7 +560,7 @@ static int bcm63xx_spi_resume(struct device *dev)
platform_get_drvdata(to_platform_device(dev));
struct bcm63xx_spi *bs = spi_master_get_devdata(master);

clk_enable(bs->clk);
clk_prepare_enable(bs->clk);

spi_master_resume(master);

Expand Down

0 comments on commit c12bcb3

Please sign in to comment.