|
@@ -929,7 +929,8 @@ static int __init wm97xx_init(void)
|
|
|
|
|
|
static void __exit wm97xx_exit(void)
|
|
static void __exit wm97xx_exit(void)
|
|
{
|
|
{
|
|
- driver_unregister(&wm97xx_driver);
|
|
|
|
|
|
+ if (IS_BUILTIN(CONFIG_AC97_BUS))
|
|
|
|
+ driver_unregister(&wm97xx_driver);
|
|
platform_driver_unregister(&wm97xx_mfd_driver);
|
|
platform_driver_unregister(&wm97xx_mfd_driver);
|
|
}
|
|
}
|
|
|
|
|