From patchwork Tue Jun 16 22:43:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6620871 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 83FF8C0020 for ; Tue, 16 Jun 2015 22:43:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 913BA207D5 for ; Tue, 16 Jun 2015 22:43:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B3500207D1 for ; Tue, 16 Jun 2015 22:43:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757266AbbFPWne (ORCPT ); Tue, 16 Jun 2015 18:43:34 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:35209 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754273AbbFPWnc (ORCPT ); Tue, 16 Jun 2015 18:43:32 -0400 Received: by wgbhy7 with SMTP id hy7so23046415wgb.2 for ; Tue, 16 Jun 2015 15:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=3gzba8AXW+CantuNPxbW5LBM9yX+raB5nAkE5ZIYNEE=; b=ma5a/NSv7T0bUhCDrZmGL2gTjrRgAbwx3mDfkQcY70biI7rJCOgfD/PlIkYeJvyAbS kYEwmcD7oModJn/grmKzWJA8D9FyGSYNyWR/xoG3JzbAmRW15x6VGRyd6+1P4/65TCm/ GQ68rt1iC6jQkNXANHMXhJSud5vh9kOcm9PzWG6IiU8N7cXBNxYvzjxzLU290MiqYBHX aeXoZ5VDbZ/u6278hBgYQHXs318YYGqDfFb7P1lTBi6TvQhXuLpQB+uz2KtCaLt+lnI7 17BswJyWNU9DJsyA6oSSo04omJZLAtAaT2/9MEb0LxiUyHMPZFJT9YEAmnKp94lx+Q6u 0hkg== X-Received: by 10.180.90.73 with SMTP id bu9mr48006395wib.88.1434494611058; Tue, 16 Jun 2015 15:43:31 -0700 (PDT) Received: from tipsey.3.home (188.30.110.230.threembb.co.uk. [188.30.110.230]) by mx.google.com with ESMTPSA id n6sm4656606wic.16.2015.06.16.15.43.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Jun 2015 15:43:30 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 1/2] staging: vt6655: remove suspend struct notifier_block. Date: Tue, 16 Jun 2015 23:43:11 +0100 Message-Id: <1434494592-2639-1-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The only thing this does is vt6655_suspend which is already been called upon suspend. Remove function device_notify_reboot and structure device_notifier. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 37 ------------------------------------ 1 file changed, 37 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 8dbde24..c393b73 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -148,15 +148,6 @@ static void device_free_info(struct vnt_private *pDevice); static bool device_get_pci_info(struct vnt_private *, struct pci_dev *pcid); static void device_print_info(struct vnt_private *pDevice); -#ifdef CONFIG_PM -static int device_notify_reboot(struct notifier_block *, unsigned long event, void *ptr); -static struct notifier_block device_notifier = { - .notifier_call = device_notify_reboot, - .next = NULL, - .priority = 0, -}; -#endif - static void device_init_rd0_ring(struct vnt_private *pDevice); static void device_init_rd1_ring(struct vnt_private *pDevice); static void device_init_td0_ring(struct vnt_private *pDevice); @@ -1892,42 +1883,14 @@ static int __init vt6655_init_module(void) int ret; ret = pci_register_driver(&device_driver); -#ifdef CONFIG_PM - if (ret >= 0) - register_reboot_notifier(&device_notifier); -#endif return ret; } static void __exit vt6655_cleanup_module(void) { -#ifdef CONFIG_PM - unregister_reboot_notifier(&device_notifier); -#endif pci_unregister_driver(&device_driver); } module_init(vt6655_init_module); module_exit(vt6655_cleanup_module); - -#ifdef CONFIG_PM -static int -device_notify_reboot(struct notifier_block *nb, unsigned long event, void *p) -{ - struct pci_dev *pdev = NULL; - - switch (event) { - case SYS_DOWN: - case SYS_HALT: - case SYS_POWER_OFF: - for_each_pci_dev(pdev) { - if (pci_dev_driver(pdev) == &device_driver) { - if (pci_get_drvdata(pdev)) - vt6655_suspend(pdev, PMSG_HIBERNATE); - } - } - } - return NOTIFY_DONE; -} -#endif