Skip to content
Commit d2314e0e authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Mark Brown
Browse files

ASoC: Only deregister AC97 dev if it's name was not "AC97"



The commit 14fa43f5 ("ASoC: Only
register AC97 bus if it's not done already") added a condition for
calling of soc_ac97_dev_register() but not added for calling of
soc_ac97_dev_unregister().  This patch adds same condition for
soc_ac97_dev_unregister().  Without this fix, kernel crashes when
unloading an asoc driver.

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 852fd9e5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment