s390/3270: fix missing device_destroy() call
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Tue, 12 Nov 2013 14:03:37 +0000 (15:03 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 15 Nov 2013 13:08:37 +0000 (14:08 +0100)
commitd1e61fe49fd450be15d402ac353784f5ba8a624e
tree9497d71d9908e5daf371345cc9e134dac9f11d06
parentaec644e56ed4fdd6c96db9cd494ae523f0d70e2e
s390/3270: fix missing device_destroy() call

Unloading the fs3270 kernel module does not remove the created
"3270/tub" device.  Reloading the module then causes a sysfs warning:
"sysfs: cannot create duplicate filename '/devices/virtual/3270/3270!tub'".

Call device_destroy() in the module exit function to solve this issue.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/fs3270.c