USB: serial: ftdi_sio: fix gpio name collisions
authorJohan Hovold <johan@kernel.org>
Sun, 30 Sep 2018 12:27:02 +0000 (14:27 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 5 Oct 2018 06:57:05 +0000 (08:57 +0200)
commite0658e3074231d68f6546be1c5916ba2f4dc1295
treed1de3b28aa57294e09717b9867251aa4c86089da
parentba93cc7da8965bd513a7393db0f030e51bff4b60
USB: serial: ftdi_sio: fix gpio name collisions

Drop the gpio line names, which cause gpiolib to complain loudly
whenever a second ftdi gpiochip is registered:

gpio gpiochip5: Detected name collision for GPIO name 'CBUS0'
gpio gpiochip5: Detected name collision for GPIO name 'CBUS1'
gpio gpiochip5: Detected name collision for GPIO name 'CBUS2'
gpio gpiochip5: Detected name collision for GPIO name 'CBUS3'

and also prevents the legacy sysfs interface from being used (as the
line names are used as device names whenever they are set):

sysfs: cannot create duplicate filename '/class/gpio/CBUS0'

Until non-unique names are supported by gpiolib (without warnings and
stack dumps), let's leave the gpio lines unnamed.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c