summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/pmic8xxx-keypad.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2018-10-15 21:16:58 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-10-15 21:24:10 +0300
commita3f7c3fcf60868c1e90671df5d0cf9be5900a09b (patch)
tree37aef555d6c3666e5df6d85ccb2b151ff4e5e056 /drivers/input/keyboard/pmic8xxx-keypad.c
parentd9265e8a878aa19898667ab32f6b8936170cf1f9 (diff)
downloadlinux-a3f7c3fcf60868c1e90671df5d0cf9be5900a09b.tar.xz
Input: wm97xx-ts - fix exit path
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: ae9d1b5fbd7b ("Input: wm97xx: add new AC97 bus support") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/pmic8xxx-keypad.c')
0 files changed, 0 insertions, 0 deletions