mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
使用subsys_initcall初始化spi/fpga,保证在其它设备初始化之前fpga可用
This commit is contained in:
@@ -476,7 +476,7 @@ static void __exit spi_fpga_exit(void)
|
||||
spi_unregister_driver(&spi_fpga_driver);
|
||||
}
|
||||
|
||||
module_init(spi_fpga_init);
|
||||
subsys_initcall(spi_fpga_init);
|
||||
module_exit(spi_fpga_exit);
|
||||
|
||||
MODULE_DESCRIPTION("Driver for spi2uart,spi2gpio,spi2i2c.");
|
||||
|
||||
@@ -1103,7 +1103,7 @@ static void __exit rk2818_spim_exit(void)
|
||||
platform_driver_unregister(&rk2818_platform_spim_driver);
|
||||
}
|
||||
|
||||
module_init(rk2818_spim_init);
|
||||
subsys_initcall(rk2818_spim_init);
|
||||
module_exit(rk2818_spim_exit);
|
||||
|
||||
MODULE_AUTHOR("lhh lhh@rock-chips.com");
|
||||
|
||||
Reference in New Issue
Block a user