File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -243,11 +243,13 @@ struct fsl_edma_engine {
243
243
244
244
#define edma_readl_chreg (chan , __name ) \
245
245
edma_readl(chan->edma, \
246
- (void __iomem *)&(container_of(chan->tcd, struct fsl_edma3_ch_reg, tcd)->__name))
246
+ (void __iomem *)&(container_of(((__force void *)chan->tcd),\
247
+ struct fsl_edma3_ch_reg, tcd)->__name))
247
248
248
249
#define edma_writel_chreg (chan , val , __name ) \
249
250
edma_writel(chan->edma, val, \
250
- (void __iomem *)&(container_of(chan->tcd, struct fsl_edma3_ch_reg, tcd)->__name))
251
+ (void __iomem *)&(container_of(((__force void *)chan->tcd),\
252
+ struct fsl_edma3_ch_reg, tcd)->__name))
251
253
252
254
#define fsl_edma_get_tcd (_chan , _tcd , _field ) ((_tcd)->_field)
253
255
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ static int fsl_edma_probe(struct platform_device *pdev)
536
536
fsl_chan -> pdev = pdev ;
537
537
vchan_init (& fsl_chan -> vchan , & fsl_edma -> dma_dev );
538
538
539
- edma_write_tcdreg (fsl_chan , 0 , csr );
539
+ edma_write_tcdreg (fsl_chan , cpu_to_le32 ( 0 ) , csr );
540
540
fsl_edma_chan_mux (fsl_chan , 0 , false);
541
541
}
542
542
You can’t perform that action at this time.
0 commit comments