summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/stm/policy.c
diff options
context:
space:
mode:
authorSudip Mukherjee2018-12-07 15:27:33 +0100
committerGreg Kroah-Hartman2018-12-19 10:40:17 +0100
commite379c1a46068969a2b822a15dbc9a37577e1e04f (patch)
tree15ab0d59bf6e6e8adbc2b8b968ccbd9548723d4d /drivers/hwtracing/stm/policy.c
parentchar: lp: use first unused lp number while registering (diff)
downloadkernel-qcow2-linux-e379c1a46068969a2b822a15dbc9a37577e1e04f.tar.gz
kernel-qcow2-linux-e379c1a46068969a2b822a15dbc9a37577e1e04f.tar.xz
kernel-qcow2-linux-e379c1a46068969a2b822a15dbc9a37577e1e04f.zip
char: lp: properly count the lp devices
When the parallel port is usb based and the lp attaches to it based on LP_PARPORT_AUTO, we do get /dev/lp0 and when we remove the usb device /dev/lp0 is unregistered. If we now reconnect the usb device we get our /dev/lp0 back. But if we now disconnect and reconnect eight times we donot get any lp device and dmesg shows: lp: ignoring parallel port (max. 8) Decrement the lp_count when the device detaches as this represents the number of lp devices connected to the system. Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/stm/policy.c')
0 files changed, 0 insertions, 0 deletions