Skip to content

Commit

Permalink
uio: clean uioinfo when uninstall uio driver
Browse files Browse the repository at this point in the history
The uioinfo should be cleaned up when uninstall, otherwise re-install
failure of uio_pdrv_genirq.ko will happen.

Signed-off-by: Jie Zhou <[email protected]>
Signed-off-by: Aisheng Dong <[email protected]>
Signed-off-by: Hans J. Koch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Jie Zhou authored and gregkh committed Apr 19, 2011
1 parent c6edc42 commit 47296b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/uio/uio_pdrv_genirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,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;
}
Expand Down

0 comments on commit 47296b1

Please sign in to comment.