hwmon: pwm-fan: fix build error
authorJoonyoung Shim <jy0922.shim@samsung.com>
Fri, 18 Jul 2014 04:53:07 +0000 (13:53 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:06 +0000 (12:00 +0900)
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>
drivers/hwmon/pwm-fan.c

index 666568c..d5421c0 100644 (file)
@@ -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;
 }