Since we want to selectively register for Intel aDSP systems based on the module flag we need to bring back explicit code for driver registration and remove module_pci_driver
Signed-off-by: Vinod Koul vinod.koul@intel.com --- sound/pci/hda/hda_intel.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index f7cdf4d2e24e..488dab208ddc 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2217,4 +2217,19 @@ static struct pci_driver azx_driver = { }, };
-module_pci_driver(azx_driver); +static int __init azx_module_init(void) +{ + int ret; + + ret = pci_register_driver(&azx_driver); + + return ret; +} +module_init(azx_module_init); + +static void __exit azx_module_exit(void) +{ + pci_unregister_driver(&azx_driver); + +} +module_exit(azx_module_exit);