Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326155
b: refs/heads/master
c: c60da82
h: refs/heads/master
i:
  326153: ad929c9
  326151: 2e852c3
v: v3
  • Loading branch information
Guenter Roeck committed Sep 24, 2012
1 parent 3fd27ae commit 90ea993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: d5282926aa89587d78bbfeb6655500b1a72de15c
refs/heads/master: c60da82593b30d3b3b97e80f6f74b5f4afa9d0b5
4 changes: 1 addition & 3 deletions trunk/drivers/hwmon/adcxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static int __devinit adcxx_probe(struct spi_device *spi)
int status;
int i;

adc = kzalloc(sizeof *adc, GFP_KERNEL);
adc = devm_kzalloc(&spi->dev, sizeof(*adc), GFP_KERNEL);
if (!adc)
return -ENOMEM;

Expand Down Expand Up @@ -208,7 +208,6 @@ static int __devinit adcxx_probe(struct spi_device *spi)

spi_set_drvdata(spi, NULL);
mutex_unlock(&adc->lock);
kfree(adc);
return status;
}

Expand All @@ -224,7 +223,6 @@ static int __devexit adcxx_remove(struct spi_device *spi)

spi_set_drvdata(spi, NULL);
mutex_unlock(&adc->lock);
kfree(adc);

return 0;
}
Expand Down

0 comments on commit 90ea993

Please sign in to comment.