]> git.baikalelectronics.ru Git - kernel.git/commit
sgi-gru: simplify procfs code
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Apr 2018 15:47:15 +0000 (17:47 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commit5ffdd0d3f22e8762182aab3f017544042a45b5f7
tree9084c92a30863a8eb172a27421fca0d54eeadde0
parentd473a058e452d5565ff4e3658e07c1de05d302ad
sgi-gru: simplify procfs code

Use remove_proc_subtree to remove the whole subtree on cleanup, and
unwind the registration loop into individual calls.  Switch to use
proc_create_seq where applicable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/misc/sgi-gru/gruprocfs.c