Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* support clearing the caseopen status through "regular" registers.
*/
ret = superio_enter(sio_data->sioreg);
* support clearing the caseopen status through "regular" registers.
*/
ret = superio_enter(sio_data->sioreg);
+ if (ret) {
+ count = ret;
superio_select(sio_data->sioreg, NCT6775_LD_ACPI);
reg = superio_inb(sio_data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr]);
superio_select(sio_data->sioreg, NCT6775_LD_ACPI);
reg = superio_inb(sio_data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr]);
superio_exit(sio_data->sioreg);
data->valid = 0; /* Force cache refresh */
superio_exit(sio_data->sioreg);
data->valid = 0; /* Force cache refresh */
error:
mutex_unlock(&data->update_lock);
error:
mutex_unlock(&data->update_lock);
}
static struct sensor_device_attribute sda_caseopen[] = {
}
static struct sensor_device_attribute sda_caseopen[] = {