From: Julia Lawall Date: Mon, 2 Sep 2013 09:54:20 +0000 (+0200) Subject: spi: designware: delete premature free_irq X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~15^2~21^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e0d191f62c779cdd6953db2541b6b92969ce1bb;p=pandora-kernel.git spi: designware: delete premature free_irq Free_irq is not needed if there has been no request_irq. Free_irq is removed from both the probe and remove functions. The correct request_irq and free_irq appear to be in the add_host and remove_host functions in spi-dw.c. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e; @@ *e = platform_get_irq(...); ... when != request_irq(e,...) *free_irq(e,...) // Signed-off-by: Julia Lawall Signed-off-by: Mark Brown --- Reading git-diff-tree failed