]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbac949392f577ced9011ec1bbb583ca9f07baf2e
tree936252ab54a70d139099f7c2fba2bf4bebc6fafb
parent831d67fab6b6ccd7be63f9740a0b9007f57cf17a
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