]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/vas: Call misc_deregister if sysfs init fails
authorZheng Bin <zhengbin13@huawei.com>
Wed, 11 May 2022 03:35:07 +0000 (11:35 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:31 +0000 (15:58 +1000)
commit9dc2c2b2fe5588db1f92b37eb8ae8a54126f1ae0
treed2290739b2b15ff033d7c2f2d068ccf7455826e6
parentf6eba63606ce7aa856c645fbd28f0d4ecdd019e6
powerpc/pseries/vas: Call misc_deregister if sysfs init fails

Undo effects of misc_register if sysfs init fails after
misc_register.

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220511033507.2745992-1-zhengbin13@huawei.com
arch/powerpc/platforms/pseries/vas-sysfs.c