]> 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)
commit2671116651a702b508b3ec44adba99aecb713c2e
tree9084c92a30863a8eb172a27421fca0d54eeadde0
parentdbd09f714a266b30966315c755daa70cf83744d8
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