macintosh/via-macii: Fix "BUG: sleeping function called from invalid context"
authorFinn Thain <fthain@linux-m68k.org>
Wed, 13 Mar 2024 02:53:41 +0000 (13:53 +1100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 29 Apr 2024 14:45:53 +0000 (16:45 +0200)
commitd301a71c76ee4c384b4e03cdc320a55f5cf1df05
treedc1127dec9ad876fe61637d955a7fea6f5cea912
parentd39d1677c304d773d88db37c8ade4a3ace697c14
macintosh/via-macii: Fix "BUG: sleeping function called from invalid context"

The via-macii ADB driver calls request_irq() after disabling hard
interrupts. But disabling interrupts isn't necessary here because the
VIA shift register interrupt was masked during VIA1 initialization.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/419fcc09d0e563b425c419053d02236b044d86b0.1710298421.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/macintosh/via-macii.c