From: Linus Walleij Date: Thu, 27 Sep 2012 12:59:39 +0000 (+0200) Subject: irqdomain: augment add_simple() to allocate descs X-Git-Tag: v3.7-rc1~39^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2854d167cc545d0642277bf8b77f972a91146fc6;p=pandora-kernel.git irqdomain: augment add_simple() to allocate descs Currently we rely on all IRQ chip instances to dynamically allocate their IRQ descriptors unless they use the linear IRQ domain. So for irqdomain_add_legacy() and irqdomain_add_simple() the caller need to make sure that descriptors are allocated. Let's slightly augment the yet unused irqdomain_add_simple() to also allocate descriptors as a means to simplify usage and avoid code duplication throughout the kernel. We warn if descriptors cannot be allocated, e.g. if a platform has the bad habit of hogging descriptors at boot time. Cc: Thomas Gleixner Cc: Grant Likely Cc: Paul Mundt Cc: Russell King Cc: Lee Jones Reviewed-by: Rob Herring Signed-off-by: Linus Walleij --- Reading git-diff-tree failed