From patchwork Wed May 8 13:20:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 2538971 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 76A64DF2E5 for ; Wed, 8 May 2013 13:20:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755272Ab3EHNUC (ORCPT ); Wed, 8 May 2013 09:20:02 -0400 Received: from mail-ee0-f49.google.com ([74.125.83.49]:54267 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755091Ab3EHNUB (ORCPT ); Wed, 8 May 2013 09:20:01 -0400 Received: by mail-ee0-f49.google.com with SMTP id d17so940273eek.8 for ; Wed, 08 May 2013 06:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=F0MajEnCUGR7xXNsegYWD6yjHaUiolf0+N2gGO1Ps3Y=; b=z2pLHc29jG4FqzGZV12W3lLjdrrPN1eIbUZIISl0L8GmBbpLepgikyRHeKATTpto0P 41iaQOC74zTfyGcKhpiDHOEtGOuZBplun5XX7y+nq7Cs+DRVdHJ73jwo9SF8/vUHr800 clZJb+7VUZLsYJAYoOZfFdl6sySAIyPcUB36sRb9MOlCy3hJXDtEkT1AN/l3F21Rumgx n1pmlH7dw+TCThlRMMHT0ST+8HKZOyvwktSuP5dtcDnDkN1khGR6RoOyt1vsr4sNOGkN 5ffmbCCodVofPGogYPs/407XQPmrn/wqmGdOTPM8rEhLfdkqiH5QDBLVtZ6UWuSh344m dsnA== X-Received: by 10.14.172.197 with SMTP id t45mr16992876eel.37.1368019200085; Wed, 08 May 2013 06:20:00 -0700 (PDT) Received: from localhost.localdomain (p4FD26E72.dip0.t-ipconnect.de. [79.210.110.114]) by mx.google.com with ESMTPSA id l6sm45316433eem.9.2013.05.08.06.19.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 06:19:59 -0700 (PDT) From: Bastian Hecht To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Arnd Bergmann , Rob Herring Subject: [PATCH] irqchip: Add irqchip_init dummy function Date: Wed, 8 May 2013 15:20:04 +0200 Message-Id: <1368019204-24448-1-git-send-email-hechtb+renesas@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org We add an empty irqchip_init dummy function for cases in which CONFIG_IRQCHIP is not used. In these cases irqchip.c is not compiled, but a funtion call may still be present in architecture code, that in runtime doesn't get hit. E.g. this is needed in the arch/arm/mach-shmobile/intc-r8a7740.c interrupt setup code where OF use and non OF us is both handled in one file. Signed-off-by: Bastian Hecht --- include/linux/irqchip.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h index e0006f1..78527ba 100644 --- a/include/linux/irqchip.h +++ b/include/linux/irqchip.h @@ -11,6 +11,10 @@ #ifndef _LINUX_IRQCHIP_H #define _LINUX_IRQCHIP_H +#ifdef CONFIG_IRQCHIP void irqchip_init(void); +#else +void irqchip_init(void) {}; +#endif #endif