diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2017-03-06 23:23:42 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-30 09:35:17 +0200 |
commit | c7d1545c48ffbf19185753c1d786e5aab950d3e3 (patch) | |
tree | 9f88ca26a72dcbac7517486d9b96aa6b3448668c /drivers/dio | |
parent | 7413d1f8991e7d5c240d89a3feb35e2a54d27baf (diff) |
parport: fix attempt to write duplicate procfiles
commit 03270c6ac6207fc55bbf9d20d195029dca210c79 upstream.
Usually every parallel port will have a single pardev registered with
it. But ppdev driver is an exception. This userspace parallel port
driver allows to create multiple parrallel port devices for a single
parallel port. And as a result we were having a nice warning like:
"sysctl table check failed:
/dev/parport/parport0/devices/ppdev0/timeslice Sysctl already exists"
Use the same logic as used in parport_register_device() and register
the proc files only once for each parallel port.
Fixes: 6fa45a226897 ("parport: add device-model to parport subsystem")
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1414656
Bugzilla: https://bugs.archlinux.org/task/52322
Tested-by: James Feeney <james@nurealm.net>
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dio')
0 files changed, 0 insertions, 0 deletions