Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762097AbdDSKMN (ORCPT ); Wed, 19 Apr 2017 06:12:13 -0400 Received: from terminus.zytor.com ([65.50.211.136]:45669 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762081AbdDSKML (ORCPT ); Wed, 19 Apr 2017 06:12:11 -0400 Date: Wed, 19 Apr 2017 03:09:54 -0700 From: tip-bot for Geliang Tang Message-ID: Cc: tbaicar@codeaurora.org, bp@suse.de, lenb@kernel.org, tglx@linutronix.de, rjw@rjwysocki.net, geliangtang@gmail.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com Reply-To: lenb@kernel.org, tglx@linutronix.de, tbaicar@codeaurora.org, bp@suse.de, geliangtang@gmail.com, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, rjw@rjwysocki.net In-Reply-To: <3afa5498142ef68256023257dad37b9f8352e65e.1489060803.git.geliangtang@gmail.com> References: <3afa5498142ef68256023257dad37b9f8352e65e.1489060803.git.geliangtang@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:ras/core] ACPI/APEI: Use setup_deferrable_timer() Git-Commit-ID: 7237c75b2717d59ebf2c2595d416e16a160154e1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1537 Lines: 40 Commit-ID: 7237c75b2717d59ebf2c2595d416e16a160154e1 Gitweb: http://git.kernel.org/tip/7237c75b2717d59ebf2c2595d416e16a160154e1 Author: Geliang Tang AuthorDate: Tue, 18 Apr 2017 20:45:28 +0200 Committer: Thomas Gleixner CommitDate: Wed, 19 Apr 2017 12:00:14 +0200 ACPI/APEI: Use setup_deferrable_timer() Use setup_deferrable_timer() instead of init_timer_deferrable() to simplify the code. Signed-off-by: Geliang Tang Tested-by: Tyler Baicar Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: linux-acpi@vger.kernel.org Link: http://lkml.kernel.org/r/3afa5498142ef68256023257dad37b9f8352e65e.1489060803.git.geliangtang@gmail.com Signed-off-by: Borislav Petkov Signed-off-by: Thomas Gleixner --- drivers/acpi/apei/ghes.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index b192b42..33ca196 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -1005,9 +1005,8 @@ static int ghes_probe(struct platform_device *ghes_dev) switch (generic->notify.type) { case ACPI_HEST_NOTIFY_POLLED: - ghes->timer.function = ghes_poll_func; - ghes->timer.data = (unsigned long)ghes; - init_timer_deferrable(&ghes->timer); + setup_deferrable_timer(&ghes->timer, ghes_poll_func, + (unsigned long)ghes); ghes_add_timer(ghes); break; case ACPI_HEST_NOTIFY_EXTERNAL: