Files
linux/drivers/input/touchscreen
Randy Dunlap d7dba42c38 Input: wm97xx-ts - fix exit path
[ Upstream commit a3f7c3fcf6 ]

Loading then unloading wm97xx-ts.ko when CONFIG_AC97_BUS=m
causes a WARNING: from drivers/base/driver.c:

Unexpected driver unregister!
WARNING: CPU: 0 PID: 1709 at ../drivers/base/driver.c:193 driver_unregister+0x30/0x40

Fix this by only calling driver_unregister() with the same
condition that driver_register() is called.

Fixes: ae9d1b5fbd ("Input: wm97xx: add new AC97 bus support")

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-21 09:19:08 +01:00
..
2018-06-24 15:20:12 -07:00
2018-02-02 16:04:10 -08:00
2016-01-02 21:08:53 -08:00
2018-06-05 10:29:38 -07:00
2016-03-02 09:40:20 -08:00
2017-02-12 14:55:08 -08:00
2018-11-21 09:19:08 +01:00