spi/of: Fix initialization of cs_gpios array
authorAndreas Larsson <andreas@gaisler.com>
Tue, 29 Jan 2013 14:53:40 +0000 (15:53 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 10 Feb 2013 23:59:55 +0000 (23:59 +0000)
commit0da83bb1c9d2690465d27cb8887918e6664f647e
tree936252ab54a70d139099f7c2fba2bf4bebc6fafb
parent0d73299ddf1f4c3ea9f8606b49c4346871a3f139
spi/of: Fix initialization of cs_gpios array

Using memset does not set an array of integers properly. Replace with a
loop to set each element properly.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c