Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373207
b: refs/heads/master
c: 8552957
h: refs/heads/master
i:
  373205: b65e0f0
  373203: bcff393
  373199: fef85c2
v: v3
  • Loading branch information
Jingoo Han authored and Samuel Ortiz committed Apr 8, 2013
1 parent 8a0378f commit 0bc6938
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: c6cc25fda58da8685ecef3f179adc7b99c8253b2
refs/heads/master: 85529575b67c318e296ae183cc80617d79aea23b
12 changes: 3 additions & 9 deletions trunk/drivers/mfd/88pm860x-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,17 +1144,15 @@ static int pm860x_probe(struct i2c_client *client,
return -ENOMEM;
ret = pm860x_dt_init(node, &client->dev, pdata);
if (ret)
goto err;
return ret;
} else if (!pdata) {
pr_info("No platform data in %s!\n", __func__);
return -EINVAL;
}

chip = kzalloc(sizeof(struct pm860x_chip), GFP_KERNEL);
if (chip == NULL) {
ret = -ENOMEM;
goto err;
}
if (chip == NULL)
return -ENOMEM;

chip->id = verify_addr(client);
chip->regmap = regmap_init_i2c(client, &pm860x_regmap_config);
Expand Down Expand Up @@ -1194,10 +1192,6 @@ static int pm860x_probe(struct i2c_client *client,

pm860x_device_init(chip, pdata);
return 0;
err:
if (node)
devm_kfree(&client->dev, pdata);
return ret;
}

static int pm860x_remove(struct i2c_client *client)
Expand Down

0 comments on commit 0bc6938

Please sign in to comment.