Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1850766ybv; Sun, 23 Feb 2020 16:54:42 -0800 (PST) X-Google-Smtp-Source: APXvYqy4zzJMaJOZZHX3jrvgLWVQQzgoDkC9Wb42Q7UAprFk45O3eGQHGuUTfnoYl6jjPkBEU8nC X-Received: by 2002:aca:37c3:: with SMTP id e186mr11089824oia.155.1582505682672; Sun, 23 Feb 2020 16:54:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582505682; cv=none; d=google.com; s=arc-20160816; b=rYQ+FgPy4z0EItxGlcsk3XpNO4xqWshTdPYvrbZAk2u8/C25Ix7R3Vp47T/Jv6CZKO 8TMlVXV4DlNGSmZFlcr4NHPqzCrJ2RQvC56U5GNxtAxEVhUFTJGBvR6AetayHxApITxY 5qibe8bw4VKUld9hRzWz/tJaGNnIMtssTfvu3jPasb81CeNuWN88xAnDXzxkLnBA59Cr u3sHRH60CBKWIiIZgln3vQ6Qzp+HdYDMvWBbAwQx6jCE2m8Ye+Y2w9vx02LXM/0w3cVr 7GNIsd8nEkKEXe6UAZp2W0VT2ibzgd5inEFco/H7rC2G8xW/hjjNjuZxMURh+EPZGnyp 424Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oRM6UBdbATulHnQYcsdVIGDvoGaSAWtDaTsLfdNkwSk=; b=p0qNYUBNyRsv1QB+C7ycE0KBdM/AaujmBA6SjoMiXLR3NMzTvDj1CzTb96WyUFxvGu a5OP9xu2/269accpaNsg+ooVSGsRtBUDZ8raxS3KFB9tuQoOrzZ2BsxOPt13R+4n4PED PQ9mDZwncPe3L0J18KD/WzVigqauGScBXe5Qbj/HNXL3OKMxam7qDsoLjYgI3V8NKEgf MMPyl3jJiKSzWB9rj43JP0ByXmepLqbjLv0XofKAZpEk36frC+7ruNH2MZnUsosw67c3 HCg7ypgi7Ux3ZZl//uJ7xRnHLwdvs00UN0SmHwH/0omNWM3ufE5njiUURUQ0i/yaNtrx U2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SD4asOnc; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si4556516oia.232.2020.02.23.16.54.30; Sun, 23 Feb 2020 16:54:42 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=SD4asOnc; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727177AbgBXAxj (ORCPT + 99 others); Sun, 23 Feb 2020 19:53:39 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45960 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbgBXAxj (ORCPT ); Sun, 23 Feb 2020 19:53:39 -0500 Received: by mail-pl1-f193.google.com with SMTP id b22so3324267pls.12 for ; Sun, 23 Feb 2020 16:53:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oRM6UBdbATulHnQYcsdVIGDvoGaSAWtDaTsLfdNkwSk=; b=SD4asOncXpzZUWKu8pM3OL1iaBkAB7eFBXDvx4syXI+Fzkw0v3by0EuSDZt8wXqPAF crfkBNTX8hYdEhaqjLaSnXLlJKfDQ9nJvUUhUMrbyTr1DvKZhgiVwIq2q8Xu8c1Q/XrR lOcBViln2Ur7C+BfFdE0obzc0AiXzTqEjfmHJDW8SJg+7Xy71rXF1KK6uG7opqLjUc8e RQY3dV/N0845afjYyj2hUaNkGggFZLL8+lD7xYjAcEkk6rsHsVFs3I7Pmh5V/5uEt3n+ ltfkQLL/9y5gqAEYbXKeQccHsCBamw6s7UAd6tIPKJp0hHgLSGWrEVO2rmAM+sADXGiS jqWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oRM6UBdbATulHnQYcsdVIGDvoGaSAWtDaTsLfdNkwSk=; b=b+4U0XA+nAdKCLwPvhri9zjeHxgudQVFFq7PSpkXN9n0LuTrdS1wjKaRVl06Qrg1xN PIsshpMXKKlQpgv1PaShj0KqLv3L7idTWvr1fzjct4VHMMLjdCZ21e+vbPANnirwf0hA LGTZylFI58OJyCbpB9BnPKKMpzUE7Dho36OAm/XnpJdL7lP8EaDpO5dt7WV28GFC0P9q rYoLpCAZdDbDGd5LjY2V211bPKPeTuJRSHC1fpD/On3EkV+ST1ZKPs5Jv0nLztvpIfw9 mLcRrXB3NP1JsiLKUvwg1pe6JWfgAdK19rTdFAoNd5CrVz9jyFcanz20Bg9IIs3aknYo 3kJw== X-Gm-Message-State: APjAAAW/q+G5qeNV86b3hxlpvFYVp6DwPb6qRwL1xUqcEED27qO3fOPA Z+aRS7Ekqi160bP8/XI1FZpWBKXkjLQ= X-Received: by 2002:a17:90a:8b82:: with SMTP id z2mr17826184pjn.59.1582505618293; Sun, 23 Feb 2020 16:53:38 -0800 (PST) Received: from localhost ([106.51.232.35]) by smtp.gmail.com with ESMTPSA id r9sm10584489pfl.136.2020.02.23.16.53.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Feb 2020 16:53:37 -0800 (PST) Date: Mon, 24 Feb 2020 06:23:36 +0530 From: afzal mohammed To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Marc Zyngier , Peter Xu , Brian Masney , Maulik Shah , Linus Walleij , Lokesh Vutla Subject: [PATCH v2 18/18] genirq: Remove setup_irq() and remove_irq() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that all the users of setup_irq() & remove_irq() has been replaced by request_irq() & free_irq() respectively, delete them. Signed-off-by: afzal mohammed Reviewed-by: Linus Walleij --- v2: * Replace pr_err("request_irq() on %s failed" by pr_err("%s: request_irq() failed" * Commit message massage include/linux/irq.h | 2 -- kernel/irq/manage.c | 44 -------------------------------------------- 2 files changed, 46 deletions(-) diff --git a/include/linux/irq.h b/include/linux/irq.h index 3ed5a055b5f4..29f5bad87eb3 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -560,8 +560,6 @@ enum { #define IRQ_DEFAULT_INIT_FLAGS ARCH_IRQ_INIT_FLAGS struct irqaction; -extern int setup_irq(unsigned int irq, struct irqaction *new); -extern void remove_irq(unsigned int irq, struct irqaction *act); extern int setup_percpu_irq(unsigned int irq, struct irqaction *new); extern void remove_percpu_irq(unsigned int irq, struct irqaction *act); diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 3089a60ea8f9..aa03b64605d3 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -1697,34 +1697,6 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) return ret; } -/** - * setup_irq - setup an interrupt - * @irq: Interrupt line to setup - * @act: irqaction for the interrupt - * - * Used to statically setup interrupts in the early boot process. - */ -int setup_irq(unsigned int irq, struct irqaction *act) -{ - int retval; - struct irq_desc *desc = irq_to_desc(irq); - - if (!desc || WARN_ON(irq_settings_is_per_cpu_devid(desc))) - return -EINVAL; - - retval = irq_chip_pm_get(&desc->irq_data); - if (retval < 0) - return retval; - - retval = __setup_irq(irq, desc, act); - - if (retval) - irq_chip_pm_put(&desc->irq_data); - - return retval; -} -EXPORT_SYMBOL_GPL(setup_irq); - /* * Internal function to unregister an irqaction - used to free * regular and special interrupts that are part of the architecture. @@ -1865,22 +1837,6 @@ static struct irqaction *__free_irq(struct irq_desc *desc, void *dev_id) return action; } -/** - * remove_irq - free an interrupt - * @irq: Interrupt line to free - * @act: irqaction for the interrupt - * - * Used to remove interrupts statically setup by the early boot process. - */ -void remove_irq(unsigned int irq, struct irqaction *act) -{ - struct irq_desc *desc = irq_to_desc(irq); - - if (desc && !WARN_ON(irq_settings_is_per_cpu_devid(desc))) - __free_irq(desc, act->dev_id); -} -EXPORT_SYMBOL_GPL(remove_irq); - /** * free_irq - free an interrupt allocated with request_irq * @irq: Interrupt line to free -- 2.25.1