]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00125800 UIO: clean uioinfo when uninstall uio driver
authorJie Zhou <b30303@freescale.com>
Wed, 4 Aug 2010 03:26:39 +0000 (11:26 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:32:29 +0000 (08:32 +0200)
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>
drivers/uio/uio_pdrv_genirq.c

index 0f424af7f10934f530f608aa24f4f63ba0438142..e669a2c62b47aada1e5c42b9fb35f64a9d3b696f 100644 (file)
@@ -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;