From: Kuppuswamy Sathyanarayanan Date: Mon, 10 Jul 2017 12:45:34 +0000 (+0200) Subject: mux: mux-core: unregister mux_class in mux_exit() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=998849967c57705b2cb013d4aea439e7e76e2d8a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mux: mux-core: unregister mux_class in mux_exit() Fixes an obvious and nasty typo. Fixes: a3b02a9c6591 ("mux: minimal mux subsystem") Signed-off-by: Kuppuswamy Sathyanarayanan Signed-off-by: Peter Rosin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c index 90b8995f07cb..2fe96c470112 100644 --- a/drivers/mux/mux-core.c +++ b/drivers/mux/mux-core.c @@ -46,7 +46,7 @@ static int __init mux_init(void) static void __exit mux_exit(void) { - class_register(&mux_class); + class_unregister(&mux_class); ida_destroy(&mux_ida); }