From patchwork Fri Jan 15 19:21:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 59885 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp739701lbb; Fri, 15 Jan 2016 11:27:01 -0800 (PST) X-Received: by 10.98.86.221 with SMTP id h90mr17339686pfj.97.1452886021707; Fri, 15 Jan 2016 11:27:01 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o81si18219075pfi.9.2016.01.15.11.27.01; Fri, 15 Jan 2016 11:27:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752303AbcAOT1A (ORCPT + 4 others); Fri, 15 Jan 2016 14:27:00 -0500 Received: from mail-lf0-f48.google.com ([209.85.215.48]:34373 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbcAOT06 (ORCPT ); Fri, 15 Jan 2016 14:26:58 -0500 Received: by mail-lf0-f48.google.com with SMTP id 17so86666481lfz.1 for ; Fri, 15 Jan 2016 11:26:57 -0800 (PST) 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=2iY6bYCnI6/mgqRfeVc6Zmz9U38sXE3Wz/ZCoX9z5Sk=; b=GXVeCbRahF81TeYD4TGqUZ7T1OTwH99n9i/sFFe1Cqyyacol0hf9olqiicYgTVD86K S80+I/joF5XB4iXle2x7LPZzk6a0u+Z6KH4TzWBJTHyYvonkAbXv9jnJ5zFS6gdeXrWa TdzeSR57fgKgCQ2bVkh/QUCAZ4YyYJu0EMArQ= 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=2iY6bYCnI6/mgqRfeVc6Zmz9U38sXE3Wz/ZCoX9z5Sk=; b=DPzgVNWSMdAx99OPiBwPO3a67irL2lbhkzyLdNKklGLRtl/ZbhWtVivTHukpsOU9Tq nsWhZfzXH+TcAZX1pvlHtnkF7qMaBc2p3k8A0BFQY82q3Ut6BdIoXoOAa0BpNcxv/KA6 X6wnGNht558n9ndFBECElp/6M9sP2tScFaH9PzLAJajjkc8tyF23p77RTyJzki1pky0I wzKA7vsFp4ZiUfN3Lnav9CjeDVNlSdJI6XQZymZvpXt4XVBUuZdd6q17YsgYzxy3yUoD tGGFyO+yGzn2LAmwVvKRONUTC5T8YH3bmn0ppuu43CEWxcbLXHdiC3McUHA4qJrpCCN1 RVlw== X-Gm-Message-State: ALoCoQnhUSuYYUbFb3qP82z47mU07OmIW+DyNRSLWytq8wl+F0rgCFv2FhUkcUrntjTi8PUUnCPsvGnnv/q9rXt6Shah0ucPQg== X-Received: by 10.25.141.129 with SMTP id p123mr3394069lfd.65.1452886017223; Fri, 15 Jan 2016 11:26:57 -0800 (PST) Received: from localhost (c-932171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.147]) by smtp.gmail.com with ESMTPSA id h72sm1520259lfe.33.2016.01.15.11.26.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2016 11:26:56 -0800 (PST) From: Anders Roxell To: bigeasy@linutronix.de Cc: linux-rt-users@vger.kernel.org, khilman@kernel.org, Anders Roxell Subject: [PATCH 1/9] drivers/clocksource: timer-atmel-pit: fix irq name Date: Fri, 15 Jan 2016 20:21:05 +0100 Message-Id: <1452885673-30891-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452885673-30891-1-git-send-email-anders.roxell@linaro.org> References: <1452885673-30891-1-git-send-email-anders.roxell@linaro.org> Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org Use the same irq (data->irq) that we used while registering the timer handle, and not atmel_pit_irq. Used multi_v7_defconfig+PREEMPT_RT_FULL=y and this caused a compilation error without this fix: ../drivers/clocksource/timer-atmel-pit.c: In function 'pit_clkevt_shutdown': ../drivers/clocksource/timer-atmel-pit.c:99:11: error: 'atmel_pit_irq' undeclared (first use in this function) free_irq(atmel_pit_irq, data); Signed-off-by: Anders Roxell --- drivers/clocksource/timer-atmel-pit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c index 80d74c4..2e313e6 100644 --- a/drivers/clocksource/timer-atmel-pit.c +++ b/drivers/clocksource/timer-atmel-pit.c @@ -96,7 +96,7 @@ static int pit_clkevt_shutdown(struct clock_event_device *dev) /* disable irq, leaving the clocksource active */ pit_write(data->base, AT91_PIT_MR, (data->cycle - 1) | AT91_PIT_PITEN); - free_irq(atmel_pit_irq, data); + free_irq(data->irq, data); return 0; }