From patchwork Fri May 21 15:28:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 101436 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4LFSaYb004767 for ; Fri, 21 May 2010 15:28:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758141Ab0EUP2f (ORCPT ); Fri, 21 May 2010 11:28:35 -0400 Received: from mail.gmx.net ([213.165.64.20]:6706 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758080Ab0EUP2f (ORCPT ); Fri, 21 May 2010 11:28:35 -0400 Received: (qmail invoked by alias); 21 May 2010 15:28:33 -0000 Received: from p57BD1D79.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.29.121] by mail.gmx.net (mp054) with SMTP; 21 May 2010 17:28:33 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX19jlwAFtDNjW1vI2OhQR4vOOR+qLlG2L9SN/X7Eow XqGAso+IY0rEuW Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1OFU9b-0005rP-QM; Fri, 21 May 2010 17:28:51 +0200 Date: Fri, 21 May 2010 17:28:51 +0200 (CEST) From: Guennadi Liakhovetski To: "linux-sh@vger.kernel.org" cc: Dan Williams Subject: [PATCH] sh: prevent the DMA driver from unloading, while in use Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 21 May 2010 15:28:36 +0000 (UTC) diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index 25ddb1e..58563a0 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c @@ -1186,6 +1186,7 @@ static struct platform_driver sh_dmae_driver = { .remove = __exit_p(sh_dmae_remove), .shutdown = sh_dmae_shutdown, .driver = { + .owner = THIS_MODULE, .name = "sh-dma-engine", }, };