From: Andrzej Pietrasiewicz Subject: [PATCH 1/3] acpi: thermal: Don't call thermal_zone_device_is_enabled() Date: Fri, 3 Jul 2020 12:43:52 +0200 Message-ID: <20200703104354.19657-2-andrzej.p@collabora.com> References: <20200703104354.19657-1-andrzej.p@collabora.com> Return-path: In-Reply-To: <20200703104354.19657-1-andrzej.p@collabora.com> Sender: netdev-owner@vger.kernel.org To: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org Cc: "Rafael J . Wysocki" , Len Brown , Vishal Kulkarni , "David S . Miller" , Jiri Pirko , Ido Schimmel , Johannes Berg , Emmanuel Grumbach , Luca Coelho , Intel Linux Wireless , Kalle Valo , Peter Kaestle , Darren Hart , Andy Shevchenko , Sebastian Reichel , Miquel Raynal , Daniel Lezcano , Amit Kucheria , Support Opensource List-Id: linux-rockchip.vger.kernel.org thermal_zone_device_update() can now handle disabled thermal zones, so the check here is not needed. Signed-off-by: Andrzej Pietrasiewicz --- drivers/acpi/thermal.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 29a2b73fe035..12c0ece746f0 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -499,9 +499,6 @@ static void acpi_thermal_check(void *data) { struct acpi_thermal *tz = data; - if (!thermal_zone_device_is_enabled(tz->thermal_zone)) - return; - thermal_zone_device_update(tz->thermal_zone, THERMAL_EVENT_UNSPECIFIED); } -- 2.17.1