Unverified Commit cc7cb040 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15017 spi: mpc52xx: Add cancel_work_sync before module remove

parents 3e25b4f1 ae9e9706
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -520,6 +520,7 @@ static int mpc52xx_spi_remove(struct platform_device *op)
	struct mpc52xx_spi *ms = spi_master_get_devdata(master);
	int i;

	cancel_work_sync(&ms->work);
	free_irq(ms->irq0, ms);
	free_irq(ms->irq1, ms);