From patchwork Mon Jun 9 14:53:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 4322221 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 290E29F433 for ; Mon, 9 Jun 2014 14:55:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 514042026C for ; Mon, 9 Jun 2014 14:55:43 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0DFC920171 for ; Mon, 9 Jun 2014 14:55:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AC17626504A; Mon, 9 Jun 2014 16:55:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 94F14264F3F; Mon, 9 Jun 2014 16:55:32 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 00349264F3F; Mon, 9 Jun 2014 16:55:30 +0200 (CEST) Received: from mailrelay008.isp.belgacom.be (mailrelay008.isp.belgacom.be [195.238.6.174]) by alsa0.perex.cz (Postfix) with ESMTP id EBFE6264F28 for ; Mon, 9 Jun 2014 16:55:22 +0200 (CEST) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuQNAE/KlVNXQAIw/2dsb2JhbABZgw2sDwUBmRCBERd1hGAjgRo3iEYBywYXhV2JDx2EKwSaIYsoiB2DPjs Received: from 48.2-64-87.adsl-dyn.isp.belgacom.be (HELO linux-zvq9.site) ([87.64.2.48]) by relay.skynet.be with ESMTP; 09 Jun 2014 16:55:22 +0200 From: Fabian Frederick To: alsa-devel@alsa-project.org Date: Mon, 9 Jun 2014 16:53:59 +0200 Message-Id: <1402325639-2376-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.8.4.5 Cc: Fabian Frederick , Takashi Iwai Subject: [alsa-devel] [PATCH 1/1] OSS/DMASOUND: add __init to dmasound_init X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP dmasound_init is only called by __init functions: __init dmasound_q40_init __init amiga_audio_probe __init dmasound_atari_init Cc: Jaroslav Kysela Cc: Takashi Iwai Signed-off-by: Fabian Frederick --- sound/oss/dmasound/dmasound.h | 2 +- sound/oss/dmasound/dmasound_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/oss/dmasound/dmasound.h b/sound/oss/dmasound/dmasound.h index 01019f0..a181ed2 100644 --- a/sound/oss/dmasound/dmasound.h +++ b/sound/oss/dmasound/dmasound.h @@ -86,7 +86,7 @@ static inline int ioctl_return(int __user *addr, int value) * Initialization */ -extern int dmasound_init(void); +extern int __init dmasound_init(void); #ifdef MODULE extern void dmasound_deinit(void); #else diff --git a/sound/oss/dmasound/dmasound_core.c b/sound/oss/dmasound/dmasound_core.c index f4ee85a..1f0a42c 100644 --- a/sound/oss/dmasound/dmasound_core.c +++ b/sound/oss/dmasound/dmasound_core.c @@ -1394,7 +1394,7 @@ static int state_init(void) * This function is called by _one_ chipset-specific driver */ -int dmasound_init(void) +int __init dmasound_init(void) { int res ; #ifdef MODULE