From: Jon Hunter Date: Fri, 1 Mar 2013 17:22:48 +0000 (-0600) Subject: gpio/omap: warn if bank is not enabled on setting irq type X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~23^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4c277e185c31359cf70573d8b0351fb7dd0dfe;p=pandora-kernel.git gpio/omap: warn if bank is not enabled on setting irq type For OMAP devices, if a gpio is being used as an interrupt source but has not been requested by calling gpio_request(), a call to request_irq() may cause the kernel hang because the gpio bank may be disabled and hence the register access will fail. To prevent such hangs, test for this case and warn if this is detected. Signed-off-by: Jon Hunter Reviewed-by: Felipe Balbi Acked-by: Santosh Shilimkar Acked-by: Kevin Hilman Tested-by: Javier Martinez Canillas Signed-off-by: Grant Likely --- Reading git-diff-tree failed