]> git.baikalelectronics.ru Git - kernel.git/commit
megaraid: simplify procfs code
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Apr 2018 18:57:56 +0000 (20:57 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commit6393946a7ccfa431b10d2f6276b27bbec2d324d1
treeb43eb7c33b024ad713ed8ec1fc230a8209f22207
parent2671116651a702b508b3ec44adba99aecb713c2e
megaraid: 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_single.

Also don't bother handling proc_create* failures - the driver works
perfectly fine without the proc files, and the cleanup will handle
missing files gracefully.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/megaraid.c
drivers/scsi/megaraid.h