Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221852
b: refs/heads/master
c: f0030d8
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Guenter Roeck committed Nov 11, 2010
1 parent 2e8fd49 commit 105b72f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: f7334b4ca9108a86b64fbd0f435f44b2113ee053
refs/heads/master: f0030d87be3cb2eb9eac633d09cb5d9f107ed0c6
6 changes: 4 additions & 2 deletions trunk/drivers/hwmon/ad7414.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,13 @@ static int ad7414_probe(struct i2c_client *client,
{
struct ad7414_data *data;
int conf;
int err = 0;
int err;

if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA |
I2C_FUNC_SMBUS_READ_WORD_DATA))
I2C_FUNC_SMBUS_READ_WORD_DATA)) {
err = -EOPNOTSUPP;
goto exit;
}

data = kzalloc(sizeof(struct ad7414_data), GFP_KERNEL);
if (!data) {
Expand Down

0 comments on commit 105b72f

Please sign in to comment.