genirq: Export IRQ functions for module use
Export irq_chip_*_parent(), irq_domain_create_hierarchy(), irq_domain_set_hwirq_and_chip(), irq_domain_reset_irq_data(), irq_domain_alloc/free_irqs_parent() So gpio drivers can be built as modules. First user: gpio-xgene-sb Signed-off-by: Quan Nguyen <qnguyen@apm.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Cc: Phong Vo <pvo@apm.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: patches@apm.com Cc: Loc Ho <lho@apm.com> Cc: Keyur Chudgar <kchudgar@apm.com> Cc: Jiang Liu <jiang.liu@linux.intel.com> Link: https://lists.01.org/pipermail/kbuild-all/2016-February/017914.html Link: http://lkml.kernel.org/r/1457017012-10628-1-git-send-email-qnguyen@apm.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
		
							parent
							
								
									f49e0eb221
								
							
						
					
					
						commit
						52b2a05fa7
					
				| @ -961,6 +961,7 @@ void irq_chip_mask_parent(struct irq_data *data) | |||||||
| 	data = data->parent_data; | 	data = data->parent_data; | ||||||
| 	data->chip->irq_mask(data); | 	data->chip->irq_mask(data); | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_chip_mask_parent); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_chip_unmask_parent - Unmask the parent interrupt |  * irq_chip_unmask_parent - Unmask the parent interrupt | ||||||
| @ -971,6 +972,7 @@ void irq_chip_unmask_parent(struct irq_data *data) | |||||||
| 	data = data->parent_data; | 	data = data->parent_data; | ||||||
| 	data->chip->irq_unmask(data); | 	data->chip->irq_unmask(data); | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_chip_unmask_parent); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_chip_eoi_parent - Invoke EOI on the parent interrupt |  * irq_chip_eoi_parent - Invoke EOI on the parent interrupt | ||||||
| @ -981,6 +983,7 @@ void irq_chip_eoi_parent(struct irq_data *data) | |||||||
| 	data = data->parent_data; | 	data = data->parent_data; | ||||||
| 	data->chip->irq_eoi(data); | 	data->chip->irq_eoi(data); | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_chip_eoi_parent); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_chip_set_affinity_parent - Set affinity on the parent interrupt |  * irq_chip_set_affinity_parent - Set affinity on the parent interrupt | ||||||
| @ -1016,6 +1019,7 @@ int irq_chip_set_type_parent(struct irq_data *data, unsigned int type) | |||||||
| 
 | 
 | ||||||
| 	return -ENOSYS; | 	return -ENOSYS; | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_chip_set_type_parent); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_chip_retrigger_hierarchy - Retrigger an interrupt in hardware |  * irq_chip_retrigger_hierarchy - Retrigger an interrupt in hardware | ||||||
|  | |||||||
| @ -893,6 +893,7 @@ struct irq_domain *irq_domain_create_hierarchy(struct irq_domain *parent, | |||||||
| 
 | 
 | ||||||
| 	return domain; | 	return domain; | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_domain_create_hierarchy); | ||||||
| 
 | 
 | ||||||
| static void irq_domain_insert_irq(int virq) | static void irq_domain_insert_irq(int virq) | ||||||
| { | { | ||||||
| @ -1043,6 +1044,7 @@ int irq_domain_set_hwirq_and_chip(struct irq_domain *domain, unsigned int virq, | |||||||
| 
 | 
 | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_domain_set_hwirq_and_chip); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_domain_set_info - Set the complete data for a @virq in @domain |  * irq_domain_set_info - Set the complete data for a @virq in @domain | ||||||
| @ -1076,6 +1078,7 @@ void irq_domain_reset_irq_data(struct irq_data *irq_data) | |||||||
| 	irq_data->chip = &no_irq_chip; | 	irq_data->chip = &no_irq_chip; | ||||||
| 	irq_data->chip_data = NULL; | 	irq_data->chip_data = NULL; | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_domain_reset_irq_data); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_domain_free_irqs_common - Clear irq_data and free the parent |  * irq_domain_free_irqs_common - Clear irq_data and free the parent | ||||||
| @ -1273,6 +1276,7 @@ int irq_domain_alloc_irqs_parent(struct irq_domain *domain, | |||||||
| 						       nr_irqs, arg); | 						       nr_irqs, arg); | ||||||
| 	return -ENOSYS; | 	return -ENOSYS; | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_domain_alloc_irqs_parent); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_domain_free_irqs_parent - Free interrupts from parent domain |  * irq_domain_free_irqs_parent - Free interrupts from parent domain | ||||||
| @ -1290,6 +1294,7 @@ void irq_domain_free_irqs_parent(struct irq_domain *domain, | |||||||
| 		irq_domain_free_irqs_recursive(domain->parent, irq_base, | 		irq_domain_free_irqs_recursive(domain->parent, irq_base, | ||||||
| 					       nr_irqs); | 					       nr_irqs); | ||||||
| } | } | ||||||
|  | EXPORT_SYMBOL_GPL(irq_domain_free_irqs_parent); | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
|  * irq_domain_activate_irq - Call domain_ops->activate recursively to activate |  * irq_domain_activate_irq - Call domain_ops->activate recursively to activate | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user