From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB422C77B7A for ; Tue, 16 May 2023 20:05:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbjEPUFp (ORCPT ); Tue, 16 May 2023 16:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbjEPUFl (ORCPT ); Tue, 16 May 2023 16:05:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD00493E8 for ; Tue, 16 May 2023 13:05:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5EA7463AEE for ; Tue, 16 May 2023 20:05:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51C02C433EF; Tue, 16 May 2023 20:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684267538; bh=jOaCLqt9lfDL0b/jZW2RMI1YYnbfHLOLMiHxnOKfg+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SRn29TWBolL8E06SvEVXRYmNHxVja3WkTfaclMbTb9FIqPMGNLqkJB4Rf5HPymwET W1yC0qEYh/haNdAOqMlR4HcoM6yVd4S5Y12FaGQ+29LjnGMeSXZGxCL5IVJyaSo9M/ ONyPHcCrbo5Lh8gO3a6T1PJDbj725FwPlWazv/EP6AmQfm0Z/0OjYWq4yNKcC81992 +Ah4gAwS/FIuFXQ0z+dBTTWkPtNr526wiAcuAoMTabLr+5SjGBv2BfViBSgIDWRo3P Vwm4f6aR8vUreKXhzOLKeD+0Qs9L89p5EQOTvyhcl48XArkjUDTcoSPGMUajAQbnb9 OCOwmkVjN1Sfw== From: Arnd Bergmann To: Thomas Gleixner , Marc Zyngier , Alexander Shiyan , Arnd Bergmann Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] irqchip: clps711x: remove unused clps711x_intc_init() function Date: Tue, 16 May 2023 22:05:06 +0200 Message-Id: <20230516200516.554663-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516200516.554663-1-arnd@kernel.org> References: <20230516200516.554663-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann This function has no caller or declaration any more: drivers/irqchip/irq-clps711x.c:215:13: error: no previous prototype for 'clps711x_intc_init' The #ifdef check around clps711x_intc_init_dt() is also not needed since the file is only built when that is enabled. Fixes: 4a56f46a7dc6 ("ARM: clps711x: Remove boards support") Signed-off-by: Arnd Bergmann --- drivers/irqchip/irq-clps711x.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/irqchip/irq-clps711x.c b/drivers/irqchip/irq-clps711x.c index 77ebe7e47e0e..e731e0784f7e 100644 --- a/drivers/irqchip/irq-clps711x.c +++ b/drivers/irqchip/irq-clps711x.c @@ -212,12 +212,6 @@ static int __init _clps711x_intc_init(struct device_node *np, return err; } -void __init clps711x_intc_init(phys_addr_t base, resource_size_t size) -{ - BUG_ON(_clps711x_intc_init(NULL, base, size)); -} - -#ifdef CONFIG_IRQCHIP static int __init clps711x_intc_init_dt(struct device_node *np, struct device_node *parent) { @@ -231,4 +225,3 @@ static int __init clps711x_intc_init_dt(struct device_node *np, return _clps711x_intc_init(np, res.start, resource_size(&res)); } IRQCHIP_DECLARE(clps711x, "cirrus,ep7209-intc", clps711x_intc_init_dt); -#endif -- 2.39.2