anolis: Update Zhaoxin AHCI SGPIO driver
ANBZ: #11923 At the time, to ensure that the Zhaoxin SGPIO driver loads after the AHCI module, we used 'late_initcall'. However, switching to 'module_init' and defining dependency constraints in Kconfig would be a better approach. Signed-off-by: LeoLiu-oc <leoliu-oc@zhaoxin.com> Reviewed-by: Guixin Liu <kanie@linux.alibaba.com> Link: https://gitee.com/anolis/cloud-kernel/pulls/4137
This commit is contained in:
parent
61e9716d64
commit
95f2458928
|
@ -116,9 +116,9 @@ config SATA_AHCI
|
|||
If unsure, say N.
|
||||
|
||||
config AHCI_ZHAOXIN_SGPIO
|
||||
tristate "zhaoxin AHCI SGPIO support"
|
||||
depends on SATA_AHCI
|
||||
default y
|
||||
tristate "Zhaoxin AHCI SGPIO support"
|
||||
depends on SATA_AHCI &&(CPU_SUP_CENTAUR || CPU_SUP_ZHAOXIN)
|
||||
default SATA_AHCI
|
||||
help
|
||||
This option enables support for Zhaoxin AHCI SGPIO.
|
||||
Add support SGPIO mode and SGPIO GP mode.
|
||||
|
|
|
@ -690,7 +690,7 @@ static void __exit zhaoxin_sgpio_exit(void)
|
|||
remove_sgpio_zhaoxin();
|
||||
}
|
||||
|
||||
late_initcall(zhaoxin_sgpio_init);
|
||||
module_init(zhaoxin_sgpio_init);
|
||||
module_exit(zhaoxin_sgpio_exit);
|
||||
|
||||
MODULE_DESCRIPTION("Zhaoxin SGPIO driver");
|
||||
|
|
Loading…
Reference in New Issue