From patchwork Fri Sep 2 21:41:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9311705 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 04D31607D2 for ; Fri, 2 Sep 2016 21:41:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0076729834 for ; Fri, 2 Sep 2016 21:41:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8DB529865; Fri, 2 Sep 2016 21:41:23 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76A1D29834 for ; Fri, 2 Sep 2016 21:41:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753342AbcIBVlX (ORCPT ); Fri, 2 Sep 2016 17:41:23 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:50673 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753334AbcIBVlW (ORCPT ); Fri, 2 Sep 2016 17:41:22 -0400 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0Lk8aY-1b4xlJ3RDG-00c9wf; Fri, 02 Sep 2016 23:41:15 +0200 From: Arnd Bergmann To: Vinod Koul Cc: Arnd Bergmann , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dmaengine: moxart: remove NO_IRQ Date: Fri, 2 Sep 2016 23:41:10 +0200 Message-Id: <20160902214134.2937823-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:YLQK0lnM0FP6k+PZMrcPh+VI+k3wjjIALc8zUbQoyK4BhrJrXeN knBDSBXDSnKt6/86lYCcrLU4O2MYIfs8VNrnCuBlL3u7Z4FRvNIsfAr4e5k9XHIv0J04qS5 Z9ItAJpQdDdrIa7CFQM5JQxyLtcjcGl6G5bd+7+KzAEG1jgDQ61nU4uF+ttvv7L+FnZf941 D4akC2jTM7beej7f0d1uQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:1LVsmMHOLHg=:IfDBHpeyxpoEG1xjk0chd+ BrQ2rlrylVK4vBvrPscFVnszDGW1wFGdv6RbqhWS93XgQzEc9Jo947n/vrmZTDs3r3BiHDIUr LNZ8b8Wnmyri1Alt52f9SVPDq0MBG+M38KJzqLHRbBT1kOJnodNWhN/WRgoEwtJyqUGSiKIkU CHk6lnE8BtsC27cYoGIDRIYkakLxxjx+phnSNfaPptGR8qImib2MkhXy0imHM42ek2DNLSjid 5uk3hGFhD5rVBEDvvnqcPqITwPr5I+NpABcJlSraxf/bDsbJyaClUCnip0ZIBUbCMXue0O/Tw jQQ3vCZW8M2nPsUsdKSL7VYU3VLls6coG6wc+XGUJb+aX06LEN3qTL4evp03VvXKZ42m07BZ9 Iwponxa2uquuEl7zZEw0wk6V5AlHLtEIqd2Al5W7gbyFHRnQrVORtvwNoMzneDqpGETPCnITW lOcXY19Jsmn7VNVyyokyjtmJqof0Zkp4DFxVtbYyahCmzKiSRixu/9ify4bbjFZyvDLaJibWe M4FwbRzebhJ25oX0OL8VxqLESDkrrTR55RJopHROAn8fZZIDdeI8327yF+K9CWONTA2qcrzr5 E+JBVXZmqzZhj9XvOyemEPYLnopOcmMX9RpkNmeR0g1zR6p4NTOdLILvfVqlm7muO7s2Inev7 BW8+Bo7ee0nc+T//cN45jcQ7qanTI0z7MTC3U8uF9rQWTU/X3LULP5J/XRmOjqAAMSVI= Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The use of NO_IRQ is incorrect here and should never have been there, as irq_of_parse_and_map() returns '0' on failure, not NO_IRQ. Signed-off-by: Arnd Bergmann --- drivers/dma/moxart-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/moxart-dma.c b/drivers/dma/moxart-dma.c index a6e642792e5a..e1a5c2242f6f 100644 --- a/drivers/dma/moxart-dma.c +++ b/drivers/dma/moxart-dma.c @@ -579,7 +579,7 @@ static int moxart_probe(struct platform_device *pdev) return -ENOMEM; irq = irq_of_parse_and_map(node, 0); - if (irq == NO_IRQ) { + if (!irq) { dev_err(dev, "no IRQ resource\n"); return -EINVAL; }