ARM: S3C24XX: Fix compilation errors with 3.6-rc1
Subsystems (3)
cover ARM: S3C24XX: Fix compilation errors with 3.6-rc1
Small fallout from from the s3c64xx spi changes and from a dma change from last year, that only surfaced after a gcc update.
Heiko Stuebner (2):
ARM: S3C24XX: Add missing DMACH_DT_PROP
ARM: S3C24XX: Fix s3c2410_dma_enqueue parameters
arch/arm/mach-s3c24xx/include/mach/dma.h | 3 ++- arch/arm/plat-s3c24xx/dma.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.2.3
PATCH 1/2 ARM: S3C24XX: Add missing DMACH_DT_PROP
Commit 2b90807549 (spi: s3c64xx: add device tree support) requires the DMACH_DT_PROP element in the dma_ch enum. It's not used on non-DT platforms but has to be present nevertheless.
So mimic the dummy-add of DMACH_DT_PROP on s3c64xx for s3c24xx machines, to correct the build breakage for the s3c24xx variants using the s3c64xx-spi-driver.
--- arch/arm/mach-s3c24xx/include/mach/dma.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-s3c24xx/include/mach/dma.h +2 -1
@@ -24,7 +24,8 @@*/ enum dma_ch { -DMACH_XD0 , +DMACH_DT_PROP =-1 ,/* not yet supported, do not use */ +DMACH_XD0 =0 ,DMACH_XD1 ,DMACH_SDI ,DMACH_SPI0 ,
Signature · 1 line
1.7.2.3
PATCH 2/2 ARM: S3C24XX: Fix s3c2410_dma_enqueue parameters
In reply to Heiko StübnerCommit d670ac019f60 (ARM: SAMSUNG: DMA Cleanup as per sparse) changed the prototype of the s3c2410_dma_* functions to use the enum dma_ch instead of an generic unsigned int.
In the s3c24xx dma.c s3c2410_dma_enqueue seems to have been forgotten, the other functions there were changed correctly.
--- arch/arm/plat-s3c24xx/dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-s3c24xx/dma.c +1 -1
@@ -430,7 +430,7 @@ s3c2410_dma_canload(struct s3c2410_dma_chan *chan)* when necessary. */ -int s3c2410_dma_enqueue (unsigned int channel,void *id, +int s3c2410_dma_enqueue (enum dma_ch channel,void *id,dma_addr_t data,int size) {struct s3c2410_dma_chan *chan =s3c_dma_lookup_channel (channel);
Signature · 1 line
1.7.2.3
Kukjin Kim
Appliedcover ARM: S3C24XX: Fix compilation errors with 3.6-rc1
In reply to Heiko StübnerQuoted 8 lines · Heiko St?bner
Small fallout from from the s3c64xx spi changes and from a dma change from last year, that only surfaced after a gcc update.
Heiko Stuebner (2):
ARM: S3C24XX: Add missingDMACH_DT_PROP
ARM: S3C24XX: Fixs3c2410_dma_enqueueparameters
Quoted 6 lines
arch/arm/mach-s3c24xx/include/mach/dma.h | 3 ++- arch/arm/plat-s3c24xx/dma.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)--
1.7.2.3
Applied this series, thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.