diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-09-20 22:21:17 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-09-20 23:52:56 -0400 |
commit | fb997a46626dca2778fa7570bb516d8486f2f837 (patch) | |
tree | 47fc7011723eff5b539328324539f6304d8e8af8 /arch/arm/plat-samsung | |
parent | dec2e82a91411f0e1948b49b5c36fa1c566de227 (diff) |
ARM: SAMSUNG: Add missing variable declaration in s3c64xx_spi1_set_platdata()
Fixes regression introduced in commit 4d0efdd5889b ("ARM: SAMSUNG:
Modify s3c64xx_spi{0|1|2}_set_platdata function")
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index fc49f3dabd76..2195209aa543 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 = { | |||
1591 | void __init s3c64xx_spi1_set_platdata(int (*cfg_gpio)(void), int src_clk_nr, | 1591 | void __init s3c64xx_spi1_set_platdata(int (*cfg_gpio)(void), int src_clk_nr, |
1592 | int num_cs) | 1592 | int num_cs) |
1593 | { | 1593 | { |
1594 | struct s3c64xx_spi_info pd; | ||
1595 | |||
1594 | /* Reject invalid configuration */ | 1596 | /* Reject invalid configuration */ |
1595 | if (!num_cs || src_clk_nr < 0) { | 1597 | if (!num_cs || src_clk_nr < 0) { |
1596 | pr_err("%s: Invalid SPI configuration\n", __func__); | 1598 | pr_err("%s: Invalid SPI configuration\n", __func__); |