Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323362
b: refs/heads/master
c: 86b3fef
h: refs/heads/master
v: v3
  • Loading branch information
Kim, Milo authored and Mark Brown committed Sep 5, 2012
1 parent f13b82b commit 82e4310
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: b158fba605bf4f1c97af338dfab64c85c4937513
refs/heads/master: 86b3fef0c7b5aba1c64ac1e02e68267aeaff44a6
5 changes: 3 additions & 2 deletions trunk/drivers/regulator/lp872x.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,13 +796,14 @@ static int lp872x_config(struct lp872x *lp)
struct lp872x_platform_data *pdata = lp->pdata;
int ret;

if (!pdata->update_config)
return 0;
if (!pdata || !pdata->update_config)
goto init_dvs;

ret = lp872x_write_byte(lp, LP872X_GENERAL_CFG, pdata->general_config);
if (ret)
return ret;

init_dvs:
return lp872x_init_dvs(lp);
}

Expand Down

0 comments on commit 82e4310

Please sign in to comment.