From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753266AbbKPOKA (ORCPT ); Mon, 16 Nov 2015 09:10:00 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:64642 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208AbbKPOF2 (ORCPT ); Mon, 16 Nov 2015 09:05:28 -0500 From: Arnd Bergmann To: Greg Kroah-Hartman Cc: Johnny Kim , Austin Shin , Chris Park , Tony Cho , Glen Lee , Leo Kim , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 07/19] staging/wilc1000: remove linux_wlan_{device_power,device_detection} Date: Mon, 16 Nov 2015 15:04:58 +0100 Message-Id: <1447682710-2908925-8-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.1.0.rc2 In-Reply-To: <1447682710-2908925-1-git-send-email-arnd@arndb.de> References: <1447682710-2908925-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:Y2Fkg2r3hDoWp+p0ydD7SQElUYc1pnPHTG9UPaIuEBGNCfKIofT WG4fpgM8TUjp0f3gO3yLaKxCADrIfbxHNMba9sS0JSftTikNO/z4PeRaGXaW6WQ2U/Cjo87 WlgitDG4XGGd+PbpTh7GocaRAYXDDG/MXpl3efl/zU3Q/U4v1tiGjIHSgHrk1ETeAhm+eQ2 nTN/HSJLPmZrh47zF+yew== X-UI-Out-Filterresults: notjunk:1;V01:K0:VLSN++vt41w=:uj4Ooszp49JmMjeAGcWLrV ofByYTv9NGAxFBcx5c41goA4swvXRxYWmal2HUAqCcF9AFcRL+ZNLRrnqisv8i1dAg9jp2Ira ZCVAu5dEIcG6LeOrLEIpNKpta9hVK7g2kC/UnvscAJGdipo6CmtAVzZSstLXQyBf/FfDOEI0d PfkqzjDfqhqz5CdnQsIdqOGTdXFwjJCZ8UAMoPZ5E7jlPEUPpCPWa9DmTSN8idZ4q3AFdm0lR NUPHsA22o4a2RpDvz9cmxSF5ASIXEozpQfp6oQVf8YA+ha8vF6likMBV8ad1+MilPOFU7b/JO U1JxjaJI9Z2JDxipDeF4+u5DVrBt9MMqNCWJC2/ZGFhIzdjZ+qs6gnWKJXvZB8Fc/hRFhRvoj Ms0Gt9ayhjnR0zf/KBsZk2J3dd1rImlm4A5BjdWyUVvgqXLVnl/Kh9B1M7r/LyVfDv6IkkHWm MLmkVdyH2TSdNQyMWtuJgOvF5cUhCDxmTNbulEuRtFTTwiKlet5afDbmeeAXVj0hzFGzchU1p zWqZ8zxhbkI1e8Mp3CiMSRCmuGwvaLD7WwfBDeTGxzazLqzLYWWoLATzcHbtdHM5HAyZPoI4b fvawKd3nxJN2A9hAl6McidN6f8sB7g2RGHZfNle3SPV602AmiCjnBCuCQiAGFC49glaShp4qQ smyiS7A2hbKHVE3gwaK1z/UIETFiXHx3RhcqHt/raG1FaFWUPVYQaQfiE1l7BXLNOx4A= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver provides an interface for custom power management and detection that is meant to be filled by people customizing the driver. The default implementation of this is empty, and we don't actually want people to have to modify the source code. If anybody needs this, they need to describe the respective hardware specifics using device tree or platform data and make the driver handle this is a more general way. This removes the empty stubs. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 40 ----------------------------------- 1 file changed, 40 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 040caa0d0d0b..6e1ef99fc856 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -31,40 +31,6 @@ #include "linux_wlan_spi.h" #endif - #define _linux_wlan_device_power_on() {} - #define _linux_wlan_device_power_off() {} - - #define _linux_wlan_device_detection() {} - #define _linux_wlan_device_removal() {} - -static int linux_wlan_device_power(int on_off) -{ - PRINT_D(INIT_DBG, "linux_wlan_device_power.. (%d)\n", on_off); - - if (on_off) { - _linux_wlan_device_power_on(); - } else { - _linux_wlan_device_power_off(); - } - - return 0; -} - -static int linux_wlan_device_detection(int on_off) -{ - PRINT_D(INIT_DBG, "linux_wlan_device_detection.. (%d)\n", on_off); - -#ifdef WILC_SDIO - if (on_off) { - _linux_wlan_device_detection(); - } else { - _linux_wlan_device_removal(); - } -#endif - - return 0; -} - static int dev_state_ev_handler(struct notifier_block *this, unsigned long event, void *ptr); static struct notifier_block g_dev_notifier = { @@ -1476,8 +1442,6 @@ void wl_wlan_cleanup(struct wilc *wilc) #if defined(WILC_DEBUGFS) wilc_debugfs_remove(); #endif - linux_wlan_device_detection(0); - linux_wlan_device_power(0); } int wilc_netdev_init(struct wilc **wilc) @@ -1579,10 +1543,6 @@ static int __init init_wilc_driver(void) printk("IN INIT FUNCTION\n"); printk("*** WILC1000 driver VERSION=[10.2] FW_VER=[10.2] ***\n"); - linux_wlan_device_power(1); - msleep(100); - linux_wlan_device_detection(1); - #ifdef WILC_SDIO { int ret; -- 2.1.0.rc2