Skip to content

Commit

Permalink
[ARM] footbridge: add isa_init_irq() to common header
Browse files Browse the repository at this point in the history
isa_init_irq() is defined in arch/arm/mach-footbridge/isa-irq.c
and used in arch/arm/mach-footbridge/common.c but there is no
definition in any header. Move the definition in common.c to
common.h to stop the sparse warning:

isa-irq.c:118:13: warning: symbol 'isa_init_irq' was not declared.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Ben Dooks committed Jan 8, 2009
1 parent 87e0d6c commit 39ebfd3
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-footbridge/common.c
Original file line number Diff line number Diff line change
@@ -28,8 +28,6 @@

#include "common.h"

extern void __init isa_init_irq(unsigned int irq);

unsigned int mem_fclk_21285 = 50000000;

EXPORT_SYMBOL(mem_fclk_21285);
1 change: 1 addition & 0 deletions arch/arm/mach-footbridge/common.h
Original file line number Diff line number Diff line change
@@ -7,3 +7,4 @@ extern void isa_rtc_init(void);
extern void footbridge_map_io(void);
extern void footbridge_init_irq(void);

extern void isa_init_irq(unsigned int irq);
2 changes: 2 additions & 0 deletions arch/arm/mach-footbridge/isa-irq.c
Original file line number Diff line number Diff line change
@@ -28,6 +28,8 @@
#include <asm/irq.h>
#include <asm/mach-types.h>

#include "common.h"

static void isa_mask_pic_lo_irq(unsigned int irq)
{
unsigned int mask = 1 << (irq & 7);

0 comments on commit 39ebfd3

Please sign in to comment.