Skip to content

Commit

Permalink
xtensa: remove NO_IRQ definitions
Browse files Browse the repository at this point in the history
These definitions (-1) were correct when used as a hardware IRQ number,
but are incorrect as a mapped IRQ number.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Jan 14, 2014
1 parent 220c062 commit c4ee0af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions arch/xtensa/platforms/xtfpga/include/platform/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#ifndef __XTENSA_XTAVNET_HARDWARE_H
#define __XTENSA_XTAVNET_HARDWARE_H

/* By default NO_IRQ is defined to 0 in Linux, but we use the
interrupt 0 for UART... */
#define NO_IRQ -1

/* Memory configuration. */

#define PLATFORM_DEFAULT_MEM_START 0x00000000
Expand Down
1 change: 0 additions & 1 deletion arch/xtensa/variants/s6000/include/variant/irq.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _XTENSA_S6000_IRQ_H
#define _XTENSA_S6000_IRQ_H

#define NO_IRQ (-1)
#define VARIANT_NR_IRQS 8 /* GPIO interrupts */

extern void variant_irq_enable(unsigned int irq);
Expand Down

0 comments on commit c4ee0af

Please sign in to comment.