[PATCH] ARM: SAMSUNG: Add missing variable declaration in s3c64xx_spi1_set_platdata()

2012-09-13 Thread Sylwester Nawrocki
Fixes regression introduced in commit 4d0efdd5889b1c81a62aa07a
ARM: SAMSUNG: Modify s3c64xx_spi{0|1|2}_set_platdata function

Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
---
 arch/arm/plat-samsung/devs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c
index fc49f3d..2195209 100644
--- a/arch/arm/plat-samsung/devs.c
+++ b/arch/arm/plat-samsung/devs.c
@@ -1591,6 +1591,8 @@ struct platform_device s3c64xx_device_spi1 = {
 void __init s3c64xx_spi1_set_platdata(int (*cfg_gpio)(void), int src_clk_nr,
int num_cs)
 {
+   struct s3c64xx_spi_info pd;
+
/* Reject invalid configuration */
if (!num_cs || src_clk_nr  0) {
pr_err(%s: Invalid SPI configuration\n, __func__);
-- 
1.7.11.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH] ARM: SAMSUNG: Add missing variable declaration in s3c64xx_spi1_set_platdata()

2012-09-13 Thread Kukjin Kim
Sylwester Nawrocki wrote:
 
 Fixes regression introduced in commit 4d0efdd5889b1c81a62aa07a
 ARM: SAMSUNG: Modify s3c64xx_spi{0|1|2}_set_platdata function
 
 Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com
 Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
 ---
  arch/arm/plat-samsung/devs.c | 2 ++
  1 file changed, 2 insertions(+)
 
 diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c
 index fc49f3d..2195209 100644
 --- a/arch/arm/plat-samsung/devs.c
 +++ b/arch/arm/plat-samsung/devs.c
 @@ -1591,6 +1591,8 @@ struct platform_device s3c64xx_device_spi1 = {
  void __init s3c64xx_spi1_set_platdata(int (*cfg_gpio)(void), int
 src_clk_nr,
   int num_cs)
  {
 + struct s3c64xx_spi_info pd;
 +
   /* Reject invalid configuration */
   if (!num_cs || src_clk_nr  0) {
   pr_err(%s: Invalid SPI configuration\n, __func__);
 --
 1.7.11.3

Applied, thanks.

Best regards,
Kgene.
--
Kukjin Kim kgene@samsung.com, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html