ENGR00125800 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: Jie Zhou <b30303@freescale.com>
This commit is contained in:
Jie Zhou
2010-08-04 11:26:39 +08:00
committed by Matt Sealey
parent 1e89231708
commit fefd0f80de

View File

@@ -157,6 +157,12 @@ static int uio_pdrv_genirq_remove(struct platform_device *pdev)
struct uio_pdrv_genirq_platdata *priv = platform_get_drvdata(pdev);
uio_unregister_device(priv->uioinfo);
priv->uioinfo->irq_flags = 0;
priv->uioinfo->handler = NULL;
priv->uioinfo->irqcontrol = NULL;
priv->uioinfo->priv = NULL;
kfree(priv);
return 0;
}