Staging: ipack/devices/ipoctal: Unmap memory on device removal.
Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org> Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cacd55c1b7
commit
6f89221683
|
@ -734,6 +734,9 @@ static void __ipoctal_remove(struct ipoctal *ipoctal)
|
||||||
|
|
||||||
tty_unregister_driver(ipoctal->tty_drv);
|
tty_unregister_driver(ipoctal->tty_drv);
|
||||||
put_tty_driver(ipoctal->tty_drv);
|
put_tty_driver(ipoctal->tty_drv);
|
||||||
|
ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_MEM_SPACE);
|
||||||
|
ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_IO_SPACE);
|
||||||
|
ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_ID_SPACE);
|
||||||
kfree(ipoctal);
|
kfree(ipoctal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue