From patchwork Fri Oct 5 10:17:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inderpal Singh X-Patchwork-Id: 12002 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 238C723EFB for ; Fri, 5 Oct 2012 10:18:20 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id B97A9A18F15 for ; Fri, 5 Oct 2012 10:18:19 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3260369iej.11 for ; Fri, 05 Oct 2012 03:18:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=kefegKIOUbTx+h8rkVlIfHSAqorQJ9BQlw2i3KWA2fw=; b=Lyz8nMjahMycvXR+sah4EoBQ0k4vTcizNpoeDg/a4waE/oT742ibSXZzgorx44JIOD dfFiZ7JYvOXUW1WCwJoDcir1qAYhypVnTdNDkXBkzB2N/59xrZcb1jl67nDhGN90Jtiw GO6yFz3M6B92GNlJeJLCa4H9d+EpmO0SMkPmj5bsKeAH0bJsG8yJvtXxo17dyD+a+2Vu qTyxVaB1i2oY0t7uXENR2c3TdJ4WJjDFuNfWRCao+qTdIWZmoq1DqS+sM6Sy1E7D3oIQ QwipmtMGJrE932S0ov2Xs+H0C9dTl8L1xsxF9tmwRZIDWu/7jfcMFdmOUdevhvLUe+C1 Uv1Q== Received: by 10.50.150.198 with SMTP id uk6mr678986igb.43.1349432299520; Fri, 05 Oct 2012 03:18:19 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp117184igc; Fri, 5 Oct 2012 03:18:19 -0700 (PDT) Received: by 10.68.217.130 with SMTP id oy2mr29080838pbc.144.1349432298941; Fri, 05 Oct 2012 03:18:18 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id j9si5649701paw.96.2012.10.05.03.18.18 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 03:18:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) smtp.mail=inderpal.singh@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md4so1847924pbc.37 for ; Fri, 05 Oct 2012 03:18:18 -0700 (PDT) Received: by 10.68.217.201 with SMTP id pa9mr29355409pbc.45.1349432298716; Fri, 05 Oct 2012 03:18:18 -0700 (PDT) Received: from inder-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id qa4sm5848287pbb.70.2012.10.05.03.18.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 03:18:18 -0700 (PDT) From: Inderpal Singh To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jassisinghbrar@gmail.com, boojin.kim@samsung.com, vinod.koul@intel.com, patches@linaro.org, kgene.kim@samsung.com Subject: [PATCH v2 4/4] DMA: PL330: unregister dma_device in module's remove function Date: Fri, 5 Oct 2012 15:47:56 +0530 Message-Id: <1349432276-22919-5-git-send-email-inderpal.singh@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349432276-22919-1-git-send-email-inderpal.singh@linaro.org> References: <1349432276-22919-1-git-send-email-inderpal.singh@linaro.org> X-Gm-Message-State: ALoCoQnm1kH86asgtjM5I8SloxA0g5MjC/Oo4jl7DPqHbIlc6QNGoeZbTah2pdUSLQY2ZYUz1bsG unregister dma_device in module's remove function. Signed-off-by: Inderpal Singh --- drivers/dma/pl330.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 4b7a34d..e7dc040 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -3017,6 +3017,8 @@ static int __devexit pl330_remove(struct amba_device *adev) return -EBUSY; } + dma_async_device_unregister(&pdmac->ddma); + amba_set_drvdata(adev, NULL); list_for_each_entry_safe(pch, _p, &pdmac->ddma.channels,