参考文档里的下面方式修改即可: 修改./driver/spi/spi-ma35d1-spi.c line 905 修改./driver/spi/spi-ma35d1-spi.c line 969 原代碼為 nuvoton->slave_done.lock = __SPIN_LOCK_UNLOCKED(nuvoton->slave_done.lock); 修改為 #ifndef CONFIG_PREEMPT_RT nuvoton->slave_done.lock = __SPIN_LOCK_UNLOCKED(nuvoton->slave_done.lock); #else nuvoton->slave_done.lock = (spinlock_t)__SPIN_LOCK_UNLOCKED(nuvoton->slave_done); #endif
|