mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
spi-pl022-starfive:Enable spi to be compiled into modules
Enable spi to be compiled into modules Signed-off-by: ziv.xu <ziv.xu@starfive.com> Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
This commit is contained in:
parent
87a81f3ad9
commit
bc3638bf33
1 changed files with 6 additions and 0 deletions
|
@ -2633,7 +2633,11 @@ static int __init pl022_init(void)
|
|||
{
|
||||
return amba_driver_register(&pl022_driver);
|
||||
}
|
||||
#if !IS_MODULE(CONFIG_SPI_PL022)
|
||||
subsys_initcall(pl022_init);
|
||||
#else
|
||||
module_init(pl022_init);
|
||||
#endif
|
||||
|
||||
static void __exit pl022_exit(void)
|
||||
{
|
||||
|
@ -2723,7 +2727,9 @@ static struct platform_driver starfive_of_pl022_driver = {
|
|||
.remove = starfive_of_pl022_remove,
|
||||
};
|
||||
|
||||
#if !IS_MODULE(CONFIG_SPI_PL022)
|
||||
module_platform_driver(starfive_of_pl022_driver);
|
||||
#endif
|
||||
/* platform register end */
|
||||
|
||||
MODULE_AUTHOR("xingyu.wu <xingyu.wu@starfivetech.com>");
|
||||
|
|
Loading…
Add table
Reference in a new issue