summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2014-07-18 13:53:07 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:06 +0900
commitcc0160f5a45eeca3588e5f4bf72b1d9a69815522 (patch)
tree73ded44cead4d5c02673677bebf140be74480f02
parentc3f8c54be593c81aeb0c11b9d0fb0c5c28a5b07b (diff)
downloadlinux-3.10-cc0160f5a45eeca3588e5f4bf72b1d9a69815522.tar.gz
linux-3.10-cc0160f5a45eeca3588e5f4bf72b1d9a69815522.tar.bz2
linux-3.10-cc0160f5a45eeca3588e5f4bf72b1d9a69815522.zip
hwmon: pwm-fan: fix build error
This fixes below build error. CC drivers/hwmon/pwm-fan.o drivers/hwmon/pwm-fan.c: In function ‘pwm_fan_remove’: drivers/hwmon/pwm-fan.c:155:20: error: ‘struct pwm_fan_ctx’ has no member named ‘mutex’ mutex_destroy(&ctx->mutex); ^ make[2]: *** [drivers/hwmon/pwm-fan.o] Error 1 Change-Id: I442ba2698869d1573662c237e67e53c2e3d6a276 Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
-rw-r--r--drivers/hwmon/pwm-fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c
index 666568c50b8..d5421c023b4 100644
--- a/drivers/hwmon/pwm-fan.c
+++ b/drivers/hwmon/pwm-fan.c
@@ -152,7 +152,7 @@ static int pwm_fan_remove(struct platform_device *pdev)
if (ctx->pwm_value)
pwm_disable(ctx->pwm);
- mutex_destroy(&ctx->mutex);
+ mutex_destroy(&ctx->lock);
return 0;
}