From patchwork Fri Nov 15 09:42:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3187391 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3BBA49F39E for ; Fri, 15 Nov 2013 09:43:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98D1420896 for ; Fri, 15 Nov 2013 09:43:15 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1B1120696 for ; Fri, 15 Nov 2013 09:43:10 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VhFvW-0004uP-He; Fri, 15 Nov 2013 09:42:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VhFvU-0002kq-46; Fri, 15 Nov 2013 09:42:56 +0000 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VhFvR-0002kK-8g for linux-arm-kernel@lists.infradead.org; Fri, 15 Nov 2013 09:42:54 +0000 Received: by mail-bk0-f43.google.com with SMTP id mz13so1554215bkb.30 for ; Fri, 15 Nov 2013 01:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=8OhJVaCGsUiqbOHV6kUn7D2kDJLoZ37TR4/670vHO78=; b=uqhq8eHfZZ6FGFr098/KpBPYkmMkeWedYwlXcw9cpieMQ2nzZcxm8DEq/6WqoiktL4 g5Q5HN1spNMD/b4jt6T32je4JTfUtA3VWhwIm5McsBi4e7wneJWsftas7ELamYiQWRFE ARLFmOxy3fELssIXHz1qnE0BYd7X2bMf9DyAeL9dnuzfiw3BLf3NRH8z0POwsRkA7oQd CyvzsXbzhnTEF1FBqiPjQyNE++PqkMkWT+Q9glyCErd0FRHZTz/8J1a0Q6mJs1FlSNUc e8unIezlEoOuXIayn9tCMkztjpaaLqvYOKoDn0CQwTWUe9kVF1STpPjqpzCOVlElCBJK 9AtA== MIME-Version: 1.0 X-Received: by 10.205.10.200 with SMTP id pb8mr3980011bkb.16.1384508550715; Fri, 15 Nov 2013 01:42:30 -0800 (PST) Received: by 10.204.74.130 with HTTP; Fri, 15 Nov 2013 01:42:30 -0800 (PST) Date: Fri, 15 Nov 2013 17:42:30 +0800 Message-ID: Subject: [PATCH -next] iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe() From: Wei Yongjun To: will.deacon@arm.com, joro@8bytes.org, grant.likely@linaro.org, rob.herring@calxeda.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131115_044253_557885_40EEE16A X-CRM114-Status: UNSURE ( 9.00 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: yongjun_wei@trendmicro.com.cn, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fix to return -ENODEV instead of 0 when context interrupt number does no match in arm_smmu_device_dt_probe(). Signed-off-by: Wei Yongjun --- drivers/iommu/arm-smmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 2349d62..2bc977b 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1858,6 +1858,7 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev) dev_err(dev, "found only %d context interrupt(s) but %d required\n", smmu->num_context_irqs, smmu->num_context_banks); + err = -ENODEV; goto out_put_parent; }