From cc0160f5a45eeca3588e5f4bf72b1d9a69815522 Mon Sep 17 00:00:00 2001 From: Joonyoung Shim Date: Fri, 18 Jul 2014 13:53:07 +0900 Subject: [PATCH] hwmon: pwm-fan: fix build error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- drivers/hwmon/pwm-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c index 666568c..d5421c02 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; } -- 2.7.4