]> Pileus Git - ~andy/linux/blobdiff - drivers/uio/uio_pdrv_genirq.c
Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[~andy/linux] / drivers / uio / uio_pdrv_genirq.c
index 61e569df2bba60cabc46a6e85d5f33007fd58a6c..0f424af7f10934f530f608aa24f4f63ba0438142 100644 (file)
@@ -155,7 +155,6 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
         * Interrupt sharing is not supported.
         */
 
-       uioinfo->irq_flags |= IRQF_DISABLED;
        uioinfo->handler = uio_pdrv_genirq_handler;
        uioinfo->irqcontrol = uio_pdrv_genirq_irqcontrol;
        uioinfo->open = uio_pdrv_genirq_open;
@@ -190,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;
 }