]> git.baikalelectronics.ru Git - kernel.git/commit
irq/generic-chip: Provide irq_free_generic_chip()
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 31 May 2017 16:06:56 +0000 (18:06 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 21 Jun 2017 13:53:10 +0000 (15:53 +0200)
commitd743beff0cf239e3c6c8296722cb4515f10539f7
tree8e8370ac67e0041e675cb756230985712cd0a6d8
parentc43740f858cb4ded4da473ecd676327a9518367f
irq/generic-chip: Provide irq_free_generic_chip()

Currently there's no way for users of irq_alloc_generic_chip() to free
the allocated memory other than calling kfree() manually on the
returned pointer. This may lead to errors if the internals of
irq_alloc_generic_chip() ever change. Provide a routine to free the
generic chip.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-doc@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Link: http://lkml.kernel.org/r/1496246820-13250-2-git-send-email-brgl@bgdev.pl
include/linux/irq.h