Commit 825de2e9 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Grant Likely

irq: Add EXPORT_SYMBOL_GPL to function of irq generic-chip

Some functions of irq generic-chip is undefined, because
EXPORT_SYMBOL_GPL is not set to these.

ERROR: "irq_setup_generic_chip" [drivers/gpio/gpio-pch.ko] undefined!
ERROR: "irq_alloc_generic_chip" [drivers/gpio/gpio-pch.ko] undefined!
ERROR: "irq_setup_generic_chip" [drivers/gpio/gpio-ml-ioh.ko] undefined!
ERROR: "irq_alloc_generic_chip" [drivers/gpio/gpio-ml-ioh.ko] undefined!

This is revised that EXPORT_SYMBOL_GPL can be added and referred
to in functions.
Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent a7aaa4f8
...@@ -211,6 +211,7 @@ irq_alloc_generic_chip(const char *name, int num_ct, unsigned int irq_base, ...@@ -211,6 +211,7 @@ irq_alloc_generic_chip(const char *name, int num_ct, unsigned int irq_base,
} }
return gc; return gc;
} }
EXPORT_SYMBOL_GPL(irq_alloc_generic_chip);
/* /*
* Separate lockdep class for interrupt chip which can nest irq_desc * Separate lockdep class for interrupt chip which can nest irq_desc
...@@ -258,6 +259,7 @@ void irq_setup_generic_chip(struct irq_chip_generic *gc, u32 msk, ...@@ -258,6 +259,7 @@ void irq_setup_generic_chip(struct irq_chip_generic *gc, u32 msk,
} }
gc->irq_cnt = i - gc->irq_base; gc->irq_cnt = i - gc->irq_base;
} }
EXPORT_SYMBOL_GPL(irq_setup_generic_chip);
/** /**
* irq_setup_alt_chip - Switch to alternative chip * irq_setup_alt_chip - Switch to alternative chip
...@@ -281,6 +283,7 @@ int irq_setup_alt_chip(struct irq_data *d, unsigned int type) ...@@ -281,6 +283,7 @@ int irq_setup_alt_chip(struct irq_data *d, unsigned int type)
} }
return -EINVAL; return -EINVAL;
} }
EXPORT_SYMBOL_GPL(irq_setup_alt_chip);
/** /**
* irq_remove_generic_chip - Remove a chip * irq_remove_generic_chip - Remove a chip
...@@ -311,6 +314,7 @@ void irq_remove_generic_chip(struct irq_chip_generic *gc, u32 msk, ...@@ -311,6 +314,7 @@ void irq_remove_generic_chip(struct irq_chip_generic *gc, u32 msk,
irq_modify_status(i, clr, set); irq_modify_status(i, clr, set);
} }
} }
EXPORT_SYMBOL_GPL(irq_remove_generic_chip);
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int irq_gc_suspend(void) static int irq_gc_suspend(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment