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>
if (ctx->pwm_value)
pwm_disable(ctx->pwm);
- mutex_destroy(&ctx->mutex);
+ mutex_destroy(&ctx->lock);
return 0;
}