From: Jie Zhou Date: Wed, 4 Aug 2010 03:26:39 +0000 (+0800) Subject: ENGR00125800 UIO: clean uioinfo when uninstall uio driver X-Git-Tag: v3.0.35-fsl~2486 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e0001c5c38e8cedbb53ec2eb7632441e5b7e437d;p=karo-tx-linux.git 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 --- diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c index 0f424af7f109..e669a2c62b47 100644 --- a/drivers/uio/uio_pdrv_genirq.c +++ b/drivers/uio/uio_pdrv_genirq.c @@ -190,8 +190,10 @@ static int uio_pdrv_genirq_remove(struct platform_device *pdev) uio_unregister_device(priv->uioinfo); pm_runtime_disable(&pdev->dev); + priv->uioinfo->irq_flags = 0; priv->uioinfo->handler = NULL; priv->uioinfo->irqcontrol = NULL; + priv->uioinfo->priv = NULL; kfree(priv); return 0;