Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231270
b: refs/heads/master
c: 50c01fc
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Iles authored and Grant Likely committed Jan 11, 2011
1 parent 2a38b5a commit 19655ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 76d9cc454a8d0bb7484616a4b8136280068c8a8b
refs/heads/master: 50c01fc355c6a97c511d58411f9bc0e4b8fc4659
5 changes: 3 additions & 2 deletions trunk/drivers/spi/dw_spi_mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <linux/clk.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
Expand Down Expand Up @@ -68,8 +69,8 @@ static int __devinit dw_spi_mmio_probe(struct platform_device *pdev)
}

dwsmmio->clk = clk_get(&pdev->dev, NULL);
if (!dwsmmio->clk) {
ret = -ENODEV;
if (IS_ERR(dwsmmio->clk)) {
ret = PTR_ERR(dwsmmio->clk);
goto err_irq;
}
clk_enable(dwsmmio->clk);
Expand Down

0 comments on commit 19655ef

Please sign in to comment.