ARM: SAMSUNG: Add missing variable declaration in s3c64xx_spi1_set_platdata()

Fixes regression introduced in commit 4d0efdd588 ("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>
This commit is contained in:
Sylwester Nawrocki 2012-09-21 11:21:17 +09:00 committed by Kukjin Kim
parent dec2e82a91
commit fb997a4662

View File

@ -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__);