diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2011-10-16 22:08:46 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-10-24 09:22:33 -0400 |
commit | 825de2e9007439977aed63771db570fc2235e8cd (patch) | |
tree | 261a210e0c075995831efd447b3c81deceea1d2a /kernel/irq | |
parent | a7aaa4f888968b1261c2701cc66f18a3d4b9777b (diff) |
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: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/generic-chip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/irq/generic-chip.c b/kernel/irq/generic-chip.c index e38544dddb18..6cb7613e4bf4 100644 --- a/kernel/irq/generic-chip.c +++ b/kernel/irq/generic-chip.c | |||
@@ -211,6 +211,7 @@ irq_alloc_generic_chip(const char *name, int num_ct, unsigned int irq_base, | |||
211 | } | 211 | } |
212 | return gc; | 212 | return gc; |
213 | } | 213 | } |
214 | EXPORT_SYMBOL_GPL(irq_alloc_generic_chip); | ||
214 | 215 | ||
215 | /* | 216 | /* |
216 | * Separate lockdep class for interrupt chip which can nest irq_desc | 217 | * 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 | } | 259 | } |
259 | gc->irq_cnt = i - gc->irq_base; | 260 | gc->irq_cnt = i - gc->irq_base; |
260 | } | 261 | } |
262 | EXPORT_SYMBOL_GPL(irq_setup_generic_chip); | ||
261 | 263 | ||
262 | /** | 264 | /** |
263 | * irq_setup_alt_chip - Switch to alternative chip | 265 | * 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 | } | 283 | } |
282 | return -EINVAL; | 284 | return -EINVAL; |
283 | } | 285 | } |
286 | EXPORT_SYMBOL_GPL(irq_setup_alt_chip); | ||
284 | 287 | ||
285 | /** | 288 | /** |
286 | * irq_remove_generic_chip - Remove a chip | 289 | * irq_remove_generic_chip - Remove a chip |
@@ -311,6 +314,7 @@ void irq_remove_generic_chip(struct irq_chip_generic *gc, u32 msk, | |||
311 | irq_modify_status(i, clr, set); | 314 | irq_modify_status(i, clr, set); |
312 | } | 315 | } |
313 | } | 316 | } |
317 | EXPORT_SYMBOL_GPL(irq_remove_generic_chip); | ||
314 | 318 | ||
315 | #ifdef CONFIG_PM | 319 | #ifdef CONFIG_PM |
316 | static int irq_gc_suspend(void) | 320 | static int irq_gc_suspend(void) |