mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
spi: bcm2835: Unbreak the build of esoteric configs
Commite82b0b3828("spi: bcm2835: Fix race on DMA termination") broke the build with COMPILE_TEST=y on arches whose cmpxchg() requires 32-bit operands (xtensa, older arm ISAs). Fix by changing the dma_pending flag's type from bool to unsigned int. Fixes:e82b0b3828("spi: bcm2835: Fix race on DMA termination") Signed-off-by: Lukas Wunner <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: Frank Pavlic <[email protected]> Cc: Martin Sperl <[email protected]> Cc: Noralf Trønnes <[email protected]>
This commit is contained in:
parent
e82b0b3828
commit
29bdedfd9c
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ struct bcm2835_spi {
|
|||
u8 *rx_buf;
|
||||
int tx_len;
|
||||
int rx_len;
|
||||
bool dma_pending;
|
||||
unsigned int dma_pending;
|
||||
};
|
||||
|
||||
static inline u32 bcm2835_rd(struct bcm2835_spi *bs, unsigned reg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue