使用subsys_initcall初始化spi/fpga,保证在其它设备初始化之前fpga可用

This commit is contained in:
黄涛
2010-08-16 15:27:42 +08:00
parent 03fe5e9f06
commit 230ce697bd
2 changed files with 2 additions and 2 deletions

View File

@@ -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.");

View File

@@ -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");