From patchwork Thu Aug 18 18:48:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 9288877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4F7D3600CB for ; Fri, 19 Aug 2016 01:14:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 414AA29246 for ; Fri, 19 Aug 2016 01:14:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36381292B3; Fri, 19 Aug 2016 01:14:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCDE129246 for ; Fri, 19 Aug 2016 01:14:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754506AbcHSBOT (ORCPT ); Thu, 18 Aug 2016 21:14:19 -0400 Received: from mga01.intel.com ([192.55.52.88]:13147 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754597AbcHSBEm (ORCPT ); Thu, 18 Aug 2016 21:04:42 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 18 Aug 2016 11:49:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,541,1464678000"; d="scan'208";a="1027884544" Received: from omniknight.lm.intel.com ([10.232.112.171]) by fmsmga001.fm.intel.com with ESMTP; 18 Aug 2016 11:49:32 -0700 From: Vishal Verma To: Cc: , Vishal Verma , stable@vger.kernel.org, linux-acpi@vger.kernel.org, Dan Williams , Xiao Guangrong Subject: [PATCH] acpi, nfit: fix acpi event notifications for nfit Date: Thu, 18 Aug 2016 12:48:24 -0600 Message-Id: <1471546104-28520-1-git-send-email-vishal.l.verma@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The nfit driver had an acpi event notification handler, but it never would've worked because we weren't setting the ACPI_DRIVER_ALL_NOTIFY_EVENTS flag in acpi_driver. Cc: Cc: Cc: Dan Williams Cc: Xiao Guangrong Signed-off-by: Vishal Verma --- drivers/acpi/nfit/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 80cc7c0..5d33d81 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -2731,6 +2731,7 @@ MODULE_DEVICE_TABLE(acpi, acpi_nfit_ids); static struct acpi_driver acpi_nfit_driver = { .name = KBUILD_MODNAME, .ids = acpi_nfit_ids, + .flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS, .ops = { .add = acpi_nfit_add, .remove = acpi_nfit_remove,