From patchwork Wed Jul 6 08:54:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 9215791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6F1C860572 for ; Wed, 6 Jul 2016 08:59:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EE0F2877D for ; Wed, 6 Jul 2016 08:59:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 535EE28794; Wed, 6 Jul 2016 08:59:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 049ED2877D for ; Wed, 6 Jul 2016 08:59:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKieR-00069A-ML; Wed, 06 Jul 2016 08:57:47 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKic9-0002uJ-Gh for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2016 08:55:26 +0000 Received: by mail-wm0-x22a.google.com with SMTP id f126so165221178wma.1 for ; Wed, 06 Jul 2016 01:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=X/ahB72x9rUwOMFgmkr0qfv9EqrN76vxwsU2WC78HgI=; b=RsFPDHsGmulKGe0SmXiXGm4MvX5B6tYJ2E5HAjXr6kKJ0fXpqoi3z9CYI0/EVSXOLH W51N/lNEYQaRB4/fcvvFmxAaCSfG3D6JfuUNblywX9OtBPB9nZ6Da1lOl1VbqXmsqvNh 3PUiXfeB42tXf57FEi4a8OfwJVjYcwUaTt/mw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=X/ahB72x9rUwOMFgmkr0qfv9EqrN76vxwsU2WC78HgI=; b=K1OtHM8RBor5/fi5XvQhlHGiRS6xUwL8DBybb47Ut9vV6UWHPuAWn2Ta6/svXgj4/2 N9dQp7ga5CdhvTu/Ejsn+2Wf4LS5A9in2rRH9kDa9M32kgPI6DfHlQSqmyxa+rJ5R1qA j68unC/E8jKbLDXz0wWEJvwfROGL9FHkfROmSh7e6w3Qi2jP+ma/IHk2kRtgsoFHmSlU 2XGwFjgcRRP3Kl+9tp8FPL2TylXHXdr+rwomrkdlVfD+yJ0neDM49nzVrYqkiyNNBqxB fUY0qhaciOZ+YhT7Q6i72OtdpMQjNVDAvTA/bJkSoyvQreMza8iv96h1cYKJ4KRkj6z9 mV/w== X-Gm-Message-State: ALyK8tKCoo8C8RwS0P3X/zUbfvrueh3bBxHzV/QLWwTPfYfQC2u2Z9+x+NocgT8CTacVKZE4 X-Received: by 10.194.87.68 with SMTP id v4mr18983226wjz.180.1467795306975; Wed, 06 Jul 2016 01:55:06 -0700 (PDT) Received: from localhost.localdomain (cpc84731-aztw28-2-0-cust112.18-1.cable.virginm.net. [82.37.67.113]) by smtp.gmail.com with ESMTPSA id 66sm5363803wmg.23.2016.07.06.01.55.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 01:55:06 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, vinod.koul@intel.com, patrice.chotard@st.com, bjorn.andersson@linaro.org, ohad@wizery.com Subject: [PATCH v6 17/18] dmaengine: st_fdma: Change to late_initcall_sync Date: Wed, 6 Jul 2016 09:54:35 +0100 Message-Id: <1467795276-21725-18-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467795276-21725-1-git-send-email-peter.griffin@linaro.org> References: <1467795276-21725-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160706_015525_812249_6CF7A2D1 X-CRM114-Status: GOOD ( 11.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.griffin@linaro.org, dmaengine@vger.kernel.org, lee.jones@linaro.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This avoids unnecessary rounds of -EPROBE_DEFER, which in turn avoids lots of console noise from remoteproc when all drivers are built-in. Signed-off-by: Peter Griffin --- drivers/dma/st_fdma.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/dma/st_fdma.c b/drivers/dma/st_fdma.c index f28026e..df7af95 100644 --- a/drivers/dma/st_fdma.c +++ b/drivers/dma/st_fdma.c @@ -869,10 +869,22 @@ static struct platform_driver st_fdma_platform_driver = { .name = "st-fdma", .of_match_table = st_fdma_match, }, - .probe = st_fdma_probe, - .remove = st_fdma_remove, }; -module_platform_driver(st_fdma_platform_driver); + +static int __init fdma_init(void) +{ + return platform_driver_probe(&st_fdma_platform_driver, st_fdma_probe); +} + +static void __exit fdma_exit(void) +{ + platform_driver_unregister(&st_fdma_platform_driver); +} + +/* attempt to load late, helps when built-in */ + +late_initcall_sync(fdma_init); +module_exit(fdma_exit); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("STMicroelectronics FDMA engine driver");