Messages in this thread Patch in this message | | | From | Daniel Glöckner <> | Subject | [patch 1/4] xtensa: move definition of irq numbers to platform header | Date | Thu, 26 Mar 2009 14:33:45 +0100 |
| |
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 <dg@emlix.com> --- 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 <variant/dmac.h> #include <platform/gpio.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 +#include <platform/irq.h> 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/
| |