Commit 47296b1962ead8301488f0dbe8424c7db7eac635

Authored by Jie Zhou
Committed by Greg Kroah-Hartman
1 parent c6edc42fe1

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>
Signed-off-by: Aisheng Dong <b29396@freescale.com>
Signed-off-by: Hans J. Koch <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

drivers/uio/uio_pdrv_genirq.c
... ... @@ -189,6 +189,10 @@
189 189  
190 190 uio_unregister_device(priv->uioinfo);
191 191 pm_runtime_disable(&pdev->dev);
  192 +
  193 + priv->uioinfo->handler = NULL;
  194 + priv->uioinfo->irqcontrol = NULL;
  195 +
192 196 kfree(priv);
193 197 return 0;
194 198 }