Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324352
b: refs/heads/master
c: 0c83adb
h: refs/heads/master
v: v3
  • Loading branch information
AnilKumar Ch authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent 1bcfbc7 commit 83e2fce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: 4bcdea86f176e96d44531c1e54a1b5c92672424d
refs/heads/master: 0c83adba6b117264eb1972d2787dd17874214e9b
8 changes: 2 additions & 6 deletions trunk/drivers/misc/lis3lv02d/lis3lv02d.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ static void lis3lv02d_8b_configure(struct lis3lv02d *lis3,
}

#ifdef CONFIG_OF
static int lis3lv02d_init_dt(struct lis3lv02d *lis3)
int lis3lv02d_init_dt(struct lis3lv02d *lis3)
{
struct lis3lv02d_platform_data *pdata;
struct device_node *np = lis3->of_node;
Expand Down Expand Up @@ -1085,7 +1085,7 @@ static int lis3lv02d_init_dt(struct lis3lv02d *lis3)
}

#else
static int lis3lv02d_init_dt(struct lis3lv02d *lis3)
int lis3lv02d_init_dt(struct lis3lv02d *lis3)
{
return 0;
}
Expand All @@ -1102,10 +1102,6 @@ int lis3lv02d_init_device(struct lis3lv02d *lis3)
irq_handler_t thread_fn;
int irq_flags = 0;

err = lis3lv02d_init_dt(lis3);
if (err < 0)
return err;

lis3->whoami = lis3lv02d_read_8(lis3, WHO_AM_I);

switch (lis3->whoami) {
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/misc/lis3lv02d/lis3lv02d.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,5 +326,6 @@ void lis3lv02d_joystick_disable(struct lis3lv02d *lis3);
void lis3lv02d_poweroff(struct lis3lv02d *lis3);
int lis3lv02d_poweron(struct lis3lv02d *lis3);
int lis3lv02d_remove_fs(struct lis3lv02d *lis3);
int lis3lv02d_init_dt(struct lis3lv02d *lis3);

extern struct lis3lv02d lis3_dev;

0 comments on commit 83e2fce

Please sign in to comment.