thermal: max31760_fan: Fix unused result warning
../drivers/thermal/qcom/max31760_fan.c:331:3: error: ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] (pdata->vdd_reg); ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ Change-Id: I06fb07da60cb765e4daf98c38afdb97690491c6f
This commit is contained in:
parent
57c2c02859
commit
c340e37c45
@ -322,13 +322,18 @@ static int max31760_suspend(struct device *dev)
|
||||
static int max31760_resume(struct device *dev)
|
||||
{
|
||||
struct max31760_data *pdata = dev_get_drvdata(dev);
|
||||
int ret;
|
||||
|
||||
dev_dbg(dev, "enter resume now\n");
|
||||
if (pdata) {
|
||||
atomic_set(&pdata->in_suspend, 0);
|
||||
mutex_lock(&pdata->update_lock);
|
||||
max31760_enable_gpio(pdata, 1);
|
||||
regulator_enable(pdata->vdd_reg);
|
||||
|
||||
ret = regulator_enable(pdata->vdd_reg);
|
||||
if (ret < 0)
|
||||
dev_err(pdata->dev, "vdd_reg regulator failed, ret:%d\n", ret);
|
||||
|
||||
max31760_write_byte(pdata, MAX31760_CTRL_REG1, 0x19);
|
||||
max31760_write_byte(pdata, MAX31760_CTRL_REG2, 0x11);
|
||||
max31760_write_byte(pdata, MAX31760_CTRL_REG3, 0x31);
|
||||
|
Loading…
Reference in New Issue
Block a user