From patchwork Mon Jun 10 00:49:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Likely X-Patchwork-Id: 250177 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 201472C06F2 for ; Mon, 10 Jun 2013 16:04:55 +1000 (EST) Received: from mail-ee0-x231.google.com (mail-ee0-x231.google.com [IPv6:2a00:1450:4013:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A99952C02EF for ; Mon, 10 Jun 2013 10:49:46 +1000 (EST) Received: by mail-ee0-f49.google.com with SMTP id b57so2635907eek.8 for ; Sun, 09 Jun 2013 17:49:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=6n7hcAPr3oORIT4SE8FICc58d/EvUZzlviCRzYthkn4=; b=SYM5ilktxei5OiwcpUXXA/LJX/o9Wevl0S4VQCoVKX9oYO2JBljTjQkeL4Al6lwG+a KRHMunfG9NfAodVoxPLi/Rtz48kFxRmQJJ+Qco9eaHPkDSBszmkWKylehe/BbWGfGn8M n21zp2r8woHAdrE1G/woTqSHBr3n5SRNNxcSy9ukdk8MVOt120xKE98BEeUA5YyY+tZf ZPmycYxt+8EaKe2kg0t77AhYUznim1EV4FYMtpYg9z6TnAy+s7E0OcLBrmZVzzBZQllD Vb05/3fbPrJfW6AQD6R+WATfsbiCF+NmQxy72SHYD6XBukihgHOKIwV8Wjv0CcHnJ7U3 d+XQ== X-Received: by 10.14.106.195 with SMTP id m43mr8474697eeg.60.1370825382492; Sun, 09 Jun 2013 17:49:42 -0700 (PDT) Received: from localhost (host86-179-75-146.range86-179.btcentralplus.com. [86.179.75.146]) by mx.google.com with ESMTPSA id 3sm19168441een.7.2013.06.09.17.49.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Jun 2013 17:49:41 -0700 (PDT) Received: by localhost (Postfix, from userid 1000) id 814E13E0E7A; Mon, 10 Jun 2013 01:49:36 +0100 (BST) From: Grant Likely To: linux-kernel@vger.kernel.org Subject: [RFC 09/10] irqdomain: remove irq_domain_generate_simple() Date: Mon, 10 Jun 2013 01:49:21 +0100 Message-Id: <1370825362-11145-10-git-send-email-grant.likely@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1370825362-11145-1-git-send-email-grant.likely@linaro.org> References: <1370825362-11145-1-git-send-email-grant.likely@linaro.org> X-Gm-Message-State: ALoCoQncrZR4c9+4KSEBI0IpJtElts7gBv075OUPXnuQcj2G1J+6iOK1RZT8uyZxKuezQgB+GoEn X-Mailman-Approved-At: Mon, 10 Jun 2013 15:58:48 +1000 Cc: Grant Likely , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Arnd Bergmann X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Nobody calls it; remove the function Signed-off-by: Grant Likely --- include/linux/irqdomain.h | 8 -------- kernel/irq/irqdomain.c | 15 --------------- 2 files changed, 23 deletions(-) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index f9e8e06..fe7c57d 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -205,14 +205,6 @@ int irq_domain_xlate_onetwocell(struct irq_domain *d, struct device_node *ctrlr, const u32 *intspec, unsigned int intsize, irq_hw_number_t *out_hwirq, unsigned int *out_type); -#if defined(CONFIG_OF_IRQ) -extern void irq_domain_generate_simple(const struct of_device_id *match, - u64 phys_base, unsigned int irq_start); -#else /* CONFIG_OF_IRQ */ -static inline void irq_domain_generate_simple(const struct of_device_id *match, - u64 phys_base, unsigned int irq_start) { } -#endif /* !CONFIG_OF_IRQ */ - #else /* CONFIG_IRQ_DOMAIN */ static inline void irq_dispose_mapping(unsigned int virq) { } #endif /* !CONFIG_IRQ_DOMAIN */ diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 80e9249..e47b356 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -741,18 +741,3 @@ const struct irq_domain_ops irq_domain_simple_ops = { .xlate = irq_domain_xlate_onetwocell, }; EXPORT_SYMBOL_GPL(irq_domain_simple_ops); - -#ifdef CONFIG_OF_IRQ -void irq_domain_generate_simple(const struct of_device_id *match, - u64 phys_base, unsigned int irq_start) -{ - struct device_node *node; - pr_debug("looking for phys_base=%llx, irq_start=%i\n", - (unsigned long long) phys_base, (int) irq_start); - node = of_find_matching_node_by_address(NULL, match, phys_base); - if (node) - irq_domain_add_legacy(node, 32, irq_start, 0, - &irq_domain_simple_ops, NULL); -} -EXPORT_SYMBOL_GPL(irq_domain_generate_simple); -#endif