Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756970AbZCZNdK (ORCPT ); Thu, 26 Mar 2009 09:33:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753802AbZCZNcm (ORCPT ); Thu, 26 Mar 2009 09:32:42 -0400 Received: from mx1.emlix.com ([193.175.82.87]:40216 "EHLO mx1.emlix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753112AbZCZNcl (ORCPT ); Thu, 26 Mar 2009 09:32:41 -0400 From: =?utf-8?q?Daniel=20Gl=C3=B6ckner?= To: Chris Zankel Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Daniel=20Gl=C3=B6ckner?= Subject: [patch 1/4] xtensa: move definition of irq numbers to platform header Date: Thu, 26 Mar 2009 14:33:45 +0100 Message-Id: <1238074428-24666-1-git-send-email-dg@emlix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Organization: emlix gmbh, Goettingen, Germany" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1758 Lines: 55 Alsa SoC drivers traditionally provide the platform specific code as separate modules. Move the list of irq numbers to a header file to allow it being used in several files. Signed-off-by: Daniel Glöckner --- arch/xtensa/platforms/s6105/device.c | 8 +------- arch/xtensa/platforms/s6105/include/platform/irq.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 arch/xtensa/platforms/s6105/include/platform/irq.h diff --git a/arch/xtensa/platforms/s6105/device.c b/arch/xtensa/platforms/s6105/device.c index bb59580..d296201 100644 --- a/arch/xtensa/platforms/s6105/device.c +++ b/arch/xtensa/platforms/s6105/device.c @@ -26,13 +26,7 @@ #include #include - -#define GPIO3_INTNUM 3 -#define UART_INTNUM 4 -#define GMAC_INTNUM 5 -#define I2C_INTNUM 6 -#define ISEF_INTNUM 8 -#define SPI_INTNUM 11 +#include static const signed char gpio3_irq_mappings[] = { S6_INTC_GPIO(3), diff --git a/arch/xtensa/platforms/s6105/include/platform/irq.h b/arch/xtensa/platforms/s6105/include/platform/irq.h new file mode 100644 index 0000000..3d5d4d2 --- /dev/null +++ b/arch/xtensa/platforms/s6105/include/platform/irq.h @@ -0,0 +1,11 @@ +#ifndef __XTENSA_PLATFORM_S6105_IRQ_H +#define __XTENSA_PLATFORM_S6105_IRQ_H + +#define GPIO3_INTNUM 3 +#define UART_INTNUM 4 +#define GMAC_INTNUM 5 +#define I2C_INTNUM 6 +#define ISEF_INTNUM 8 +#define SPI_INTNUM 11 + +#endif -- 1.6.2.107.ge47ee -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/