diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2018-12-07 14:27:31 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-19 10:40:17 +0100 |
commit | d6318c0e8318c200aa95b50769d3635907381c08 (patch) | |
tree | 0be847f7b75c128ea4713fcd6aa33e8c3f851561 /drivers/char/ttyprintk.c | |
parent | char: lp: introduce list to save port number (diff) | |
download | linux-dev-d6318c0e8318c200aa95b50769d3635907381c08.tar.xz linux-dev-d6318c0e8318c200aa95b50769d3635907381c08.zip |
char: lp: detach the device when parallel port is removed
When the parallel port is usb based and the lp attaches to it, we do
get /dev/lp0, but when we remove the usb device and the parallel port
is gone, we are still left with /dev/lp0.
Unregister the device properly in the detach routine based on the port
number it has connected to.
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/ttyprintk.c')
0 files changed, 0 insertions, 0 deletions