From: Brian Bian Date: Tue, 14 Nov 2017 17:36:36 +0000 (-0800) Subject: thermal: int3400_thermal: Ignore Unknown Notification Codes X-Git-Tag: Ubuntu-5.10.0-12.13~8465^2^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=261ac1d2d9ef9a29c57f8aff341ae3dc323a707c;p=mirror_ubuntu-hirsute-kernel.git thermal: int3400_thermal: Ignore Unknown Notification Codes Some BIOS implementations route ACPI codes other than 0x83 to INT3400 device. Ignore these ACPI notification codes because the INT3400 driver does not handle them. Signed-off-by: Brian Bian Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/int340x_thermal/int3400_thermal.c b/drivers/thermal/int340x_thermal/int3400_thermal.c index 8ee38f55c7f3..c9db1c643501 100644 --- a/drivers/thermal/int340x_thermal/int3400_thermal.c +++ b/drivers/thermal/int340x_thermal/int3400_thermal.c @@ -211,7 +211,7 @@ static void int3400_notify(acpi_handle handle, thermal_prop); break; default: - dev_err(&priv->adev->dev, "Unsupported event [0x%x]\n", event); + /* Ignore unknown notification codes sent to INT3400 device */ break; } }