Commit d95defac authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Grant Likely

spi/spi_sh_msiof: fix a wrong free_irq() parameter

Without this fix reloading of the driver is impossible.
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 672c5446
...@@ -635,7 +635,7 @@ static int sh_msiof_spi_remove(struct platform_device *pdev) ...@@ -635,7 +635,7 @@ static int sh_msiof_spi_remove(struct platform_device *pdev)
ret = spi_bitbang_stop(&p->bitbang); ret = spi_bitbang_stop(&p->bitbang);
if (!ret) { if (!ret) {
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
free_irq(platform_get_irq(pdev, 0), sh_msiof_spi_irq); free_irq(platform_get_irq(pdev, 0), p);
iounmap(p->mapbase); iounmap(p->mapbase);
clk_put(p->clk); clk_put(p->clk);
spi_master_put(p->bitbang.master); spi_master_put(p->bitbang.master);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment