Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220469
b: refs/heads/master
c: 9c627e3
h: refs/heads/master
i:
  220467: d1b3e03
v: v3
  • Loading branch information
Thomas Gleixner authored and Jean Delvare committed Oct 28, 2010
1 parent f267e69 commit 23586d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: caaa0f36c378c6fec6fd5260a63566e002ac4a84
refs/heads/master: 9c627e3be3e8f36eda73ed9e8aa4763582841c1f
8 changes: 4 additions & 4 deletions trunk/drivers/hwmon/s3c-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct s3c_hwmon_attr {
* @attr: The holders for the channel attributes.
*/
struct s3c_hwmon {
struct semaphore lock;
struct mutex lock;
struct s3c_adc_client *client;
struct device *hwmon_dev;

Expand All @@ -73,14 +73,14 @@ static int s3c_hwmon_read_ch(struct device *dev,
{
int ret;

ret = down_interruptible(&hwmon->lock);
ret = mutex_lock_interruptible(&hwmon->lock);
if (ret < 0)
return ret;

dev_dbg(dev, "reading channel %d\n", channel);

ret = s3c_adc_read(hwmon->client, channel);
up(&hwmon->lock);
mutex_unlock(&hwmon->lock);

return ret;
}
Expand Down Expand Up @@ -296,7 +296,7 @@ static int __devinit s3c_hwmon_probe(struct platform_device *dev)

platform_set_drvdata(dev, hwmon);

init_MUTEX(&hwmon->lock);
mutex_init(&hwmon->lock);

/* Register with the core ADC driver. */

Expand Down

0 comments on commit 23586d7

Please sign in to comment.