diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-19 15:38:28 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-07-05 02:10:47 -0400 |
commit | d7cabeed830b7eb3958cbc084a85649126cd670f (patch) | |
tree | 0cf740e0fa71d4e875b7da2ce27344614df95fb1 /arch/arm/mach-spear | |
parent | e368b510c01aaf7b2957306836ffdeacc24712a3 (diff) |
dmaengine: PL08x: Avoid collisions with get_signal() macro
As pointed out by Arnd Bergmann there is a get_signal macro definied in
linux/signal.h which can conflict with the platform data callback
function of the same name leading to confusing errors from the compiler
(especially if signal.h manages to get pulled into the driver itself due
to header dependencies). Avoid such errors by renaming get_signal and
put_signal in the platform data to get_xfer_signal and put_xfer_signal.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'arch/arm/mach-spear')
-rw-r--r-- | arch/arm/mach-spear/spear3xx.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-spear/spear6xx.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-spear/spear3xx.c b/arch/arm/mach-spear/spear3xx.c index 0227c97797cd..bf3b1fd8cb23 100644 --- a/arch/arm/mach-spear/spear3xx.c +++ b/arch/arm/mach-spear/spear3xx.c | |||
@@ -56,8 +56,8 @@ struct pl08x_platform_data pl080_plat_data = { | |||
56 | }, | 56 | }, |
57 | .lli_buses = PL08X_AHB1, | 57 | .lli_buses = PL08X_AHB1, |
58 | .mem_buses = PL08X_AHB1, | 58 | .mem_buses = PL08X_AHB1, |
59 | .get_signal = pl080_get_signal, | 59 | .get_xfer_signal = pl080_get_signal, |
60 | .put_signal = pl080_put_signal, | 60 | .put_xfer_signal = pl080_put_signal, |
61 | }; | 61 | }; |
62 | 62 | ||
63 | /* | 63 | /* |
diff --git a/arch/arm/mach-spear/spear6xx.c b/arch/arm/mach-spear/spear6xx.c index ec8eefbbdfad..cf477c78bb18 100644 --- a/arch/arm/mach-spear/spear6xx.c +++ b/arch/arm/mach-spear/spear6xx.c | |||
@@ -335,8 +335,8 @@ static struct pl08x_platform_data spear6xx_pl080_plat_data = { | |||
335 | }, | 335 | }, |
336 | .lli_buses = PL08X_AHB1, | 336 | .lli_buses = PL08X_AHB1, |
337 | .mem_buses = PL08X_AHB1, | 337 | .mem_buses = PL08X_AHB1, |
338 | .get_signal = pl080_get_signal, | 338 | .get_xfer_signal = pl080_get_signal, |
339 | .put_signal = pl080_put_signal, | 339 | .put_xfer_signal = pl080_put_signal, |
340 | .slave_channels = spear600_dma_info, | 340 | .slave_channels = spear600_dma_info, |
341 | .num_slave_channels = ARRAY_SIZE(spear600_dma_info), | 341 | .num_slave_channels = ARRAY_SIZE(spear600_dma_info), |
342 | }; | 342 | }; |