mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:11 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user