From patchwork Thu Mar 13 22:21:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 3829001 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6CA1CBF540 for ; Thu, 13 Mar 2014 22:21:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 961522017E for ; Thu, 13 Mar 2014 22:21:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B3252017D for ; Thu, 13 Mar 2014 22:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754381AbaCMWVM (ORCPT ); Thu, 13 Mar 2014 18:21:12 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49136 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754258AbaCMWVL (ORCPT ); Thu, 13 Mar 2014 18:21:11 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 935B775012; Thu, 13 Mar 2014 22:21:10 +0000 (UTC) Date: Thu, 13 Mar 2014 23:21:08 +0100 From: Jean Delvare To: linux-wireless@vger.kernel.org, brcm80211-dev-list@broadcom.com Cc: Hante Meuleman , Arend van Spriel , "John W. Linville" Subject: [PATCH] brcmfmac: Make probe function __init Message-ID: <20140313232108.7e760e11@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-suse-linux-gnu) MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 One of the benefits of platform_driver_probe() is that you can make the probe function __init. Signed-off-by: Jean Delvare Cc: Hante Meuleman Cc: Arend van Spriel Cc: John W. Linville --- Build tested only, no hardware. drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-3.14-rc6.orig/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c 2014-02-09 16:53:04.065657732 +0100 +++ linux-3.14-rc6/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c 2014-03-13 19:46:25.083526576 +0100 @@ -1122,7 +1122,7 @@ static struct sdio_driver brcmf_sdmmc_dr #endif /* CONFIG_PM_SLEEP */ }; -static int brcmf_sdio_pd_probe(struct platform_device *pdev) +static int __init brcmf_sdio_pd_probe(struct platform_device *pdev) { brcmf_dbg(SDIO, "Enter\n");