From patchwork Wed May 8 02:33:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16761 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D024125E0D for ; Wed, 8 May 2013 02:35:26 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id t59sf1730911yho.9 for ; Tue, 07 May 2013 19:35:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=GlFk1nIDkmQXto6crhYOuHVPC8OHFVoDmy0OiJV/C+c=; b=jzn2JfBbaNXkrYk1uHry2jX/eO3HbQpUtNR3HpEYuMui16FShS/ixSZTrjw+jUl79J SuCJASrvA2R5XgLokmpJEuGDe8Qvvz3Gf3z63csjCx/mTKt572mHAHnB15Vl/ZikN/oz HIZnqBgM0XCEMFNcgJyq6Ueus0TFpmAcre2uVCecg9fFCOd7ZjDwiQgYWgHY2j7qnqLH qLN0m7DV7WGHvc/veqQFBlIvaEFsncc0PXUV+fkUfM+iFmbRqrU5FJGC58JPVtYZZ4e9 rB6vygIrVsK/2/Z9dMYX0r3vqMzajio0jNwHJRo4VeTMXJ2gTOf/o3E9NgWsLjWKbDxy 9p6A== X-Received: by 10.236.120.166 with SMTP id p26mr2734758yhh.57.1367980506726; Tue, 07 May 2013 19:35:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.240 with SMTP id d16ls762235qey.70.gmail; Tue, 07 May 2013 19:35:06 -0700 (PDT) X-Received: by 10.52.230.201 with SMTP id ta9mr2704331vdc.119.1367980506474; Tue, 07 May 2013 19:35:06 -0700 (PDT) Received: from mail-vb0-x230.google.com (mail-vb0-x230.google.com [2607:f8b0:400c:c02::230]) by mx.google.com with ESMTPS id ha8si14137586vdb.100.2013.05.07.19.35.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:35:06 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::230; Received: by mail-vb0-f48.google.com with SMTP id q16so1150652vbe.21 for ; Tue, 07 May 2013 19:35:06 -0700 (PDT) X-Received: by 10.220.189.9 with SMTP id dc9mr3155742vcb.8.1367980506281; Tue, 07 May 2013 19:35:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp131028veb; Tue, 7 May 2013 19:35:05 -0700 (PDT) X-Received: by 10.194.236.198 with SMTP id uw6mr2951015wjc.33.1367980505396; Tue, 07 May 2013 19:35:05 -0700 (PDT) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [2a00:1450:400c:c00::22f]) by mx.google.com with ESMTPS id ep6si1321504wid.127.2013.05.07.19.35.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:35:05 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::22f is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c00::22f; Received: by mail-wg0-f47.google.com with SMTP id e11so1309360wgh.26 for ; Tue, 07 May 2013 19:35:04 -0700 (PDT) X-Received: by 10.194.59.132 with SMTP id z4mr7127913wjq.57.1367980504759; Tue, 07 May 2013 19:35:04 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id v6sm6823630wiy.11.2013.05.07.19.35.03 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:35:04 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, patches@linaro.org, ian.campbell@citrix.com, Julien Grall Subject: [PATCH V2 26/33] xen/arm: remove request_irq Date: Wed, 8 May 2013 03:33:46 +0100 Message-Id: <67b4db061c49eae4063625c764e8b32614aa0dd3.1367979526.git.julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQn/R+I8xR2ScxHehUoaOn2WKcYXToF60NRi9cbVUtTRQW7wRotPOOx3IXxd1NZwZ8VdUaA+ X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , All calls to this function in ARM code have been removed. This function SHOULD not be used. If someone calls this function, a linking error will occur. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/arch/arm/irq.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/xen/arch/arm/irq.c b/xen/arch/arm/irq.c index 0b7a75f..0fbd3d1 100644 --- a/xen/arch/arm/irq.c +++ b/xen/arch/arm/irq.c @@ -97,13 +97,6 @@ int __init request_dt_irq(const struct dt_irq *irq, void (*handler)(int, void *, struct cpu_user_regs *), unsigned long irqflags, const char *devname, void *dev_id) { - return request_irq(irq->irq, handler, irqflags, devname, dev_id); -} - -int __init request_irq(unsigned int irq, - void (*handler)(int, void *, struct cpu_user_regs *), - unsigned long irqflags, const char * devname, void *dev_id) -{ struct irqaction *action; int retval; @@ -113,7 +106,7 @@ int __init request_irq(unsigned int irq, * which interrupt is which (messes up the interrupt freeing * logic etc). */ - if (irq >= nr_irqs) + if (irq->irq >= nr_irqs) return -EINVAL; if (!handler) return -EINVAL; @@ -127,7 +120,7 @@ int __init request_irq(unsigned int irq, action->dev_id = dev_id; action->free_on_release = 1; - retval = setup_irq(irq, action); + retval = setup_dt_irq(irq, action); if (retval) xfree(action);