diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2013-09-02 11:54:20 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-17 00:19:14 +0100 |
commit | 1e0d191f62c779cdd6953db2541b6b92969ce1bb (patch) | |
tree | 33ff14c5b0ecc8c40d20057b6196641d80ebc9ce /Documentation/cris | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
download | linux-1e0d191f62c779cdd6953db2541b6b92969ce1bb.tar.bz2 |
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/)
// <smpl>
@@
expression e;
@@
*e = platform_get_irq(...);
... when != request_irq(e,...)
*free_irq(e,...)
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'Documentation/cris')
0 files changed, 0 insertions, 0 deletions