summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-06-17 15:51:02 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-11 18:06:36 -0700
commitaff008ad813c7cf3cfe7b532e7ba2c526c136f22 (patch)
tree9e5b7ee153019ed9f529f3d879ae07d9f2a917c8 /include/crypto
parentcd3de83f147601356395b57a8673e9c5ff1e59d1 (diff)
downloadtalos-obmc-linux-aff008ad813c7cf3cfe7b532e7ba2c526c136f22.tar.gz
talos-obmc-linux-aff008ad813c7cf3cfe7b532e7ba2c526c136f22.zip
platform_get_irq: Revert to platform_get_resource if of_irq_get fails
Commits 9ec36ca (of/irq: do irq resolution in platform_get_irq) and ad69674 (of/irq: do irq resolution in platform_get_irq_byname) change the semantics of platform_get_irq and platform_get_irq_byname to always rely on devicetree information if devicetree is enabled and if a devicetree node is attached to the device. The functions now return an error if the devicetree data does not include interrupt information, even if the information is available as platform resource data. This causes mfd client drivers to fail if the interrupt number is passed via platform resources. Therefore, if of_irq_get fails, try platform_get_resource as method of last resort. This restores the original functionality for drivers depending on platform resources to get irq information. Cc: Russell King <linux@arm.linux.org.uk> Cc: Tony Lindgren <tony@atomide.com> Cc: Grant Likely <grant.likely@linaro.org> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Rob Herring <robh@kernel.org> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/crypto')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud