Message ID | 20190626144651.16742-9-daniel.lezcano@linaro.org |
---|---|
State | Accepted |
Commit | 7a3916706e858ad0bc3b5629c68168e1449de26a |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp872428ock; Wed, 26 Jun 2019 07:49:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCUkVClPFs/Em9gLa2DcTdxN8Qm4Aiuv9iZXGFjZlYnGyJx+MiuJBy00X0NA2eD6GiXT1r X-Received: by 2002:a17:90a:bd8c:: with SMTP id z12mr5249649pjr.60.1561560543605; Wed, 26 Jun 2019 07:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561560543; cv=none; d=google.com; s=arc-20160816; b=IayGvyJ3rwx0ZnOBLjliXDh2zC1O+N9MQqErc4rYEjphQ5+h8ibDro1Pxozg5nkv25 XLT9qvzALMBwGl9DKI3ZvHKP+z3rL9RZ4PpdPQdRbIubsNrqktLh4q/p0uO+8QHzM4sF v+vqRiegBXcSmJKo82P8rUbm1kg+E1a2D0+f2FpC/YMeSZzCWgO2jPY0vy1JvuHH96N9 oKPsoEfGkrkhgOId5IlvFL3iw2D9wT2mDgG66Ww5EkQ2OT5/9X2O1ckzkYXxDAdZj/3W 3C/zNOg+wkG5q/znci5GidKHsRFHdKvAtpBQ4UQg+nHyKmwhvtBbvoU3MkZZabxxQo8K rmtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=8oLgj+UEWnuH/nXzCuT6g/iWSmzVogRXnWTAEILdbE8=; b=f7F2YKx4E/r1fd1103qu552NUGEzZa912keQ2IEAh6nNqXW1gHDmaQjntGBDxroDge 5EggFynqYZVlX9KsIsxhRSdipjO9re4AH8fsTC2xOk7LDXZtOeAA/6jTq/bp+WVfGlhn HJdXiLL0crOAvrVvVdAICebV1DBXvMGrIBGHbAM9VNu7oWsnQlXvI0YnuSerw608s9w3 DcO9meR8KLO8qeBip2xXZ/eRi6WcO+rZKBGwvCKwGXYt6ZiOQ3PvpSDmBgBtQSyNSoG0 Xr0MC9RzEZy3SIfmUuq6QQiEav1vJYCBEBZOGj+BVQKEquAt0gdYCyWFoT2ofwHDEezV ewJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s6HgvJ8p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y16si15521455pfe.129.2019.06.26.07.49.03; Wed, 26 Jun 2019 07:49:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s6HgvJ8p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728290AbfFZOtB (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Wed, 26 Jun 2019 10:49:01 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55331 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728261AbfFZOr3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jun 2019 10:47:29 -0400 Received: by mail-wm1-f66.google.com with SMTP id a15so2400260wmj.5 for <linux-kernel@vger.kernel.org>; Wed, 26 Jun 2019 07:47:27 -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=8oLgj+UEWnuH/nXzCuT6g/iWSmzVogRXnWTAEILdbE8=; b=s6HgvJ8pz1mFKEtN0S8Kx9pkvKR2hjJZQySOrYD5K1+chU0fVGduV7GZMyF3sPX+XP 645jKICzuF/sRqjhGHXYBtile4u0wJRoXk0iR/C/BjVuJ9Yos7KEMttePh5RkgUEUFZY BFWYme23UHytrWrv8RdBL+HhqsGiG7Dg03CXJ7PlKyPswGdl5CQph53Ws44hO8ARRW6U 6p9rWDsKFXwbHlMiTUnBK0wuZ0MLTHmPNuup5VGhaMWNqd2BCaTsMVA6NnM9zBumwNTY /N1p+SPM916dXvzl/I8xgVmELNbCNs3Ip8Plv4gBgFS1poaeG7CoOsIQjoWGZaHiADUQ t4kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8oLgj+UEWnuH/nXzCuT6g/iWSmzVogRXnWTAEILdbE8=; b=QtGvEmnBmgDzYyDmJcEn3auGEcS+5v2UEQEXBwL/BykK64vJhR8whbc/5be87qlL+U 48+U7XtBkHsT6A49XJNlR0cQA0Iwod5fkBP/ri3yN/OD9dPMgcGVZdtug7eOc160nknO bIpMQr3rHa6w0L/2e58IUbRsYXUG8IFn1Xscl7Puy3l5JEfghDC0H6E3/tUfYboW0yVv RQHrBmojR9TzjdpIZGD4ppRqI8HCTzOu6NNcHq8e5burE5Hn0i6bfvmU7CVG6uR5L1Pz AKevWa7DxVfx4TUPkgD5s3SWwQioLBdLdH1d+5EiYW4H2aPhBJikRCQ7jxSq0rfOOeln GERw== X-Gm-Message-State: APjAAAV8rZKXYkPytsJ339b5q0FchR70VyRddftLEwkIq302LI85Z+dW u2r6lElsI89k10rjUv4gcuDxAz0BEpQ= X-Received: by 2002:a1c:cb4d:: with SMTP id b74mr3154779wmg.43.1561560446690; Wed, 26 Jun 2019 07:47:26 -0700 (PDT) Received: from mai.imgcgcw.net (26.92.130.77.rev.sfr.net. [77.130.92.26]) by smtp.gmail.com with ESMTPSA id h84sm2718557wmf.43.2019.06.26.07.47.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 07:47:26 -0700 (PDT) From: Daniel Lezcano <daniel.lezcano@linaro.org> To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Dmitry Osipenko <digetx@gmail.com>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, linux-tegra@vger.kernel.org (open list:TEGRA ARCHITECTURE SUPPORT) Subject: [PATCH 09/25] clocksource/drivers/tegra: Release all IRQ's on request_irq() error Date: Wed, 26 Jun 2019 16:46:35 +0200 Message-Id: <20190626144651.16742-9-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190626144651.16742-1-daniel.lezcano@linaro.org> References: <adba7d03-e9bd-9542-60bc-0f2d4874a40e@linaro.org> <20190626144651.16742-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[01/25] clocksource/drivers/timer-meson6: Update with SPDX Licence identifier
|
expand
|
diff --git a/drivers/clocksource/timer-tegra20.c b/drivers/clocksource/timer-tegra20.c index 276b55f6ada0..e2ef6b8211a5 100644 --- a/drivers/clocksource/timer-tegra20.c +++ b/drivers/clocksource/timer-tegra20.c @@ -284,7 +284,7 @@ static int __init tegra_init_timer(struct device_node *np, bool tegra20) pr_err("%s: can't map IRQ for CPU%d\n", __func__, cpu); ret = -EINVAL; - goto out; + goto out_irq; } irq_set_status_flags(cpu_to->clkevt.irq, IRQ_NOAUTOEN); @@ -294,7 +294,8 @@ static int __init tegra_init_timer(struct device_node *np, bool tegra20) if (ret) { pr_err("%s: cannot setup irq %d for CPU%d\n", __func__, cpu_to->clkevt.irq, cpu); - ret = -EINVAL; + irq_dispose_mapping(cpu_to->clkevt.irq); + cpu_to->clkevt.irq = 0; goto out_irq; } }