From patchwork Tue Jul 2 09:26:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2811351 Return-Path: X-Original-To: patchwork-linux-arm@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 CD6799F3EB for ; Tue, 2 Jul 2013 09:27:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35E2F2013E for ; Tue, 2 Jul 2013 09:27:41 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 932832014B for ; Tue, 2 Jul 2013 09:27:39 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Utwra-0002BV-Do; Tue, 02 Jul 2013 09:27:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtwrK-0002dw-QM; Tue, 02 Jul 2013 09:26:50 +0000 Received: from mail-bk0-x229.google.com ([2a00:1450:4008:c01::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtwrF-0002cJ-OR for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2013 09:26:48 +0000 Received: by mail-bk0-f41.google.com with SMTP id jc3so2204679bkc.28 for ; Tue, 02 Jul 2013 02:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=LAKGexIHR98S0yOaf1qxH0ccF+K6wgi5DYIynPj4c74=; b=CKT/NQATnP9e+aOXFL+7T9JdzOmpiX0V8+dYeTUSS69jurDSnWs/hTyP3wwfqIZ+a1 vCJtcqQW+lqTMbAaWcZAe+jN7T1QxWSinVXIAXum0jSFcasMjyShNcaOq4USEvvhPkPG sTz0nXa6+Meo3q2V4BVUxxHOjnuEGBkuEwdn8eUKKkOCCgT8EYo7EHDfh2LRcGnrYp0f qxt7DTVNnJg0bo+jzPm/U+KrxZB7gPPhQmeGqLvJ0ZXGrBhCWxZ/ENlzYG5GeuE+KyJg GXqQvNTEoxcEBuiPxPlO5O4ygLhbk037quP7aQl7aPBc6mTmArQ0eY1fXS4jYx0+4wDL SKBg== MIME-Version: 1.0 X-Received: by 10.204.55.70 with SMTP id t6mr3805688bkg.7.1372757181880; Tue, 02 Jul 2013 02:26:21 -0700 (PDT) Received: by 10.205.122.72 with HTTP; Tue, 2 Jul 2013 02:26:21 -0700 (PDT) Date: Tue, 2 Jul 2013 17:26:21 +0800 Message-ID: Subject: [PATCH] ASoC: brownstone: add .owner to struct snd_soc_card From: Wei Yongjun To: eric.y.miao@gmail.com, linux@arm.linux.org.uk, haojian.zhuang@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.de X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130702_052645_927036_65E542A6 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: yongjun_wei@trendmicro.com.cn, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 From: Wei Yongjun Add missing .owner of struct snd_soc_card. This prevents the module from being removed from underneath its users. Signed-off-by: Wei Yongjun --- sound/soc/pxa/brownstone.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/pxa/brownstone.c b/sound/soc/pxa/brownstone.c index 4ad7609..e582c05 100644 --- a/sound/soc/pxa/brownstone.c +++ b/sound/soc/pxa/brownstone.c @@ -129,6 +129,7 @@ static struct snd_soc_dai_link brownstone_wm8994_dai[] = { /* audio machine driver */ static struct snd_soc_card brownstone = { .name = "brownstone", + .owner = THIS_MODULE, .dai_link = brownstone_wm8994_dai, .num_links = ARRAY_SIZE(brownstone_wm8994_dai),