summaryrefslogtreecommitdiffstats
path: root/drivers/mux
diff options
context:
space:
mode:
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>2017-07-10 14:45:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-17 16:38:35 +0200
commit998849967c57705b2cb013d4aea439e7e76e2d8a (patch)
tree6b5be8586b0d397f55c3a099e86c77c3d6228b2b /drivers/mux
parent4c19c0ec73241b29a12daf913d46f0c15aa33783 (diff)
downloadtalos-obmc-linux-998849967c57705b2cb013d4aea439e7e76e2d8a.tar.gz
talos-obmc-linux-998849967c57705b2cb013d4aea439e7e76e2d8a.zip
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 <sathyanarayanan.kuppuswamy@linux.intel.com> Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mux')
-rw-r--r--drivers/mux/mux-core.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud