Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283459
b: refs/heads/master
c: 998a8e7
h: refs/heads/master
i:
  283457: 1f2e0c2
  283455: 7825c09
v: v3
  • Loading branch information
Kim, Milo authored and Anton Vorontsov committed Jan 4, 2012
1 parent f535264 commit a50e45e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2165c8a45bf2fba49f54fb81a50914f883bd14df
refs/heads/master: 998a8e7a72f6a81f540d3a3774d8e8aae6c7f9f2
3 changes: 3 additions & 0 deletions trunk/drivers/power/lp8727_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ static int lp8727_probe(struct i2c_client *cl, const struct i2c_device_id *id)
struct lp8727_chg *pchg;
int ret;

if (!i2c_check_functionality(cl->adapter, I2C_FUNC_SMBUS_I2C_BLOCK))
return -EIO;

pchg = kzalloc(sizeof(*pchg), GFP_KERNEL);
if (!pchg)
return -ENOMEM;
Expand Down

0 comments on commit a50e45e

Please sign in to comment.