Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324353
b: refs/heads/master
c: 79df8d2
h: refs/heads/master
i:
  324351: 1bcfbc7
v: v3
  • Loading branch information
AnilKumar Ch authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent 83e2fce commit 4e306d5
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 0c83adba6b117264eb1972d2787dd17874214e9b
refs/heads/master: 79df8d27d9f4382647c31ef17f7402833d682b73
8 changes: 6 additions & 2 deletions trunk/drivers/misc/lis3lv02d/lis3lv02d_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/pm.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/of_device.h>

#include "lis3lv02d.h"

Expand Down Expand Up @@ -87,10 +88,13 @@ static int __devinit lis302dl_spi_probe(struct spi_device *spi)
lis3_dev.pdata = spi->dev.platform_data;

#ifdef CONFIG_OF
if (of_match_device(lis302dl_spi_dt_ids, &spi->dev))
if (of_match_device(lis302dl_spi_dt_ids, &spi->dev)) {
lis3_dev.of_node = spi->dev.of_node;
ret = lis3lv02d_init_dt(&lis3_dev);
if (ret)
return ret;
}
#endif

spi_set_drvdata(spi, &lis3_dev);

return lis3lv02d_init_device(&lis3_dev);
Expand Down

0 comments on commit 4e306d5

Please sign in to comment.