]> git.ipfire.org Git - people/ms/linux.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 12 Mar 2014 08:39:40 +0000 (09:39 +0100)
commitc1b73028e93c7a9217ad75ed75a7fe167606054d
tree5285ac560498e196d69fbd2014a9d184e7865da1
parent5afb0316f677daa3603c79b648800f9af012c200
s390/3270: fix missing device_destroy() call

commit d1e61fe49fd450be15d402ac353784f5ba8a624e upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/s390/char/fs3270.c