Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195916
b: refs/heads/master
c: 395b228
h: refs/heads/master
v: v3
  • Loading branch information
Wolfram Sang authored and David Woodhouse committed Mar 21, 2010
1 parent 8255b15 commit bee1d9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 4d682420cead1ce06d8cd44ae193414404f0e7f5
refs/heads/master: 395b228858778d3c44f7c413693a6acaa8bb62dc
8 changes: 7 additions & 1 deletion trunk/drivers/mtd/maps/pismo.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ static int __devexit pismo_remove(struct i2c_client *client)
/* FIXME: set_vpp needs saner arguments */
pismo_setvpp_remove_fix(pismo);

i2c_set_clientdata(client, NULL);
kfree(pismo);

return 0;
Expand Down Expand Up @@ -271,7 +272,7 @@ static int __devinit pismo_probe(struct i2c_client *client,
ret = pismo_eeprom_read(client, &eeprom, 0, sizeof(eeprom));
if (ret < 0) {
dev_err(&client->dev, "error reading EEPROM: %d\n", ret);
return ret;
goto exit_free;
}

dev_info(&client->dev, "%.15s board found\n", eeprom.board);
Expand All @@ -282,6 +283,11 @@ static int __devinit pismo_probe(struct i2c_client *client,
pdata->cs_addrs[i]);

return 0;

exit_free:
i2c_set_clientdata(client, NULL);
kfree(pismo);
return ret;
}

static const struct i2c_device_id pismo_id[] = {
Expand Down

0 comments on commit bee1d9f

Please sign in to comment.