Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47296b19 authored by Jie Zhou's avatar Jie Zhou Committed by Greg Kroah-Hartman
Browse files

uio: clean uioinfo when uninstall uio driver



The uioinfo should be cleaned up when uninstall, otherwise re-install
failure of uio_pdrv_genirq.ko will happen.

Signed-off-by: default avatarJie Zhou <b30303@freescale.com>
Signed-off-by: default avatarAisheng Dong <b29396@freescale.com>
Signed-off-by: default avatarHans J. Koch <hjk@hansjkoch.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c6edc42f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -189,6 +189,10 @@ static int uio_pdrv_genirq_remove(struct platform_device *pdev)

	uio_unregister_device(priv->uioinfo);
	pm_runtime_disable(&pdev->dev);

	priv->uioinfo->handler = NULL;
	priv->uioinfo->irqcontrol = NULL;

	kfree(priv);
	return 0;
}