From patchwork Fri Oct 17 00:48:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Jui X-Patchwork-Id: 38836 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A91B202DB for ; Fri, 17 Oct 2014 00:48:13 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id y10sf2484273wgg.2 for ; Thu, 16 Oct 2014 17:48:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=/jGIPLUYv+F/GGlrT9ImJ1onuVLbyxi5s9IbBPkS190=; b=APsZa6XU+pC2DyYtQnkBMODZtHikhsQhdqNokQTt+BDG1+wmMVZH1Azap5Wt4POTj4 eRu20j09slsd+IdVLo7GmLPiPrzhCo2EbFIcXg5pjXWvyAMmKIedmuWt/HDxwtO3W4QD AUF9bRes88L+m+OTB16zx5XOuqIJcVFbLyMGGEA7He2OOvz35IPYh6UzAucTsPpZ4kDa nDNtTllbqgI4V7UYkUKCDB26NIErEf8BtePlF0kfUiTrGte17EnAQ3W9nUz2Vgv2DotY bP6j3Hxu809BzAVg3Xh3c6tii+GA4hL7YBis0Tpzmgj7p4s0XZGmGXTGrfZTJK0lSH7B VFoA== X-Gm-Message-State: ALoCoQkcjxpV5cp1qJ6BBaxfue9nVqfPqNKt/rbo+0xUtbvaDvIXSSDUzBsDTtnsir094jWkIw9S X-Received: by 10.180.19.198 with SMTP id h6mr1847401wie.5.1413506893259; Thu, 16 Oct 2014 17:48:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.195 with SMTP id g3ls217290lam.59.gmail; Thu, 16 Oct 2014 17:48:12 -0700 (PDT) X-Received: by 10.112.222.195 with SMTP id qo3mr5184206lbc.29.1413506892920; Thu, 16 Oct 2014 17:48:12 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by mx.google.com with ESMTPS id bk5si36923281lbb.109.2014.10.16.17.48.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Oct 2014 17:48:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id q1so3833128lam.4 for ; Thu, 16 Oct 2014 17:48:12 -0700 (PDT) X-Received: by 10.152.205.44 with SMTP id ld12mr5101319lac.53.1413506892803; Thu, 16 Oct 2014 17:48:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp143163lbz; Thu, 16 Oct 2014 17:48:12 -0700 (PDT) X-Received: by 10.70.90.173 with SMTP id bx13mr4764749pdb.89.1413506891302; Thu, 16 Oct 2014 17:48:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn6si1596852pab.220.2014.10.16.17.47.41 for ; Thu, 16 Oct 2014 17:48:11 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753282AbaJQAri (ORCPT + 27 others); Thu, 16 Oct 2014 20:47:38 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:3441 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752620AbaJQArg (ORCPT ); Thu, 16 Oct 2014 20:47:36 -0400 X-IronPort-AV: E=Sophos;i="5.04,735,1406617200"; d="scan'208";a="48414406" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 16 Oct 2014 18:09:30 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 16 Oct 2014 17:47:39 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Thu, 16 Oct 2014 17:47:40 -0700 Received: from mail.broadcom.com (lbrmn-lnxub44.ric.broadcom.com [10.136.8.49]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id E5D9D40FE5; Thu, 16 Oct 2014 17:47:24 -0700 (PDT) From: Ray Jui To: Vinod Koul , Dan Williams CC: Scott Branden , , , Ray Jui Subject: [PATCH] dmaengine: pl330: use subsys_initcall Date: Thu, 16 Oct 2014 17:48:16 -0700 Message-ID: <1413506896-4536-1-git-send-email-rjui@broadcom.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rjui@broadcom.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As part of subsystem that many slave drivers depend on, it's more appropriate for the pl330 DMA driver to be initialized at subsys_initcall than device_initcall Signed-off-by: Ray Jui Tested-by: Krzysztof Kozlowski --- drivers/dma/pl330.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index d5149aa..abb4cae 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2811,7 +2811,17 @@ static struct amba_driver pl330_driver = { .remove = pl330_remove, }; -module_amba_driver(pl330_driver); +static int __init pl330_init(void) +{ + return amba_driver_register(&pl330_driver); +} +subsys_initcall(pl330_init); + +static void __exit pl330_exit(void) +{ + amba_driver_unregister(&pl330_driver); +} +module_exit(pl330_exit); MODULE_AUTHOR("Jaswinder Singh "); MODULE_DESCRIPTION("API Driver for PL330 DMAC");