Arnd Bergmann 4732cc6360 spi/s3c64xx: improve error handling
When a device tree definition os an s3c64xx SPI master is missing
a "controller-data" subnode, the newly added s3c64xx_get_slave_ctrldata
function might use uninitialized memory in place of that node,
which was correctly reported by gcc.

Without this patch, building s3c6400_defconfig results in:

drivers/spi/spi-s3c64xx.c: In function 's3c64xx_get_slave_ctrldata.isra.25':
drivers/spi/spi-s3c64xx.c:841:5: warning: 'data_np' may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Jaswinder Singh <jaswinder.singh@linaro.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
2012-08-10 12:27:47 +02:00
..
2011-11-09 23:02:12 +08:00
2011-06-06 01:16:30 -06:00
2012-04-10 14:11:34 -06:00
2011-09-21 09:41:48 -06:00
2011-06-06 01:16:30 -06:00
2012-07-10 15:28:56 +01:00
2011-06-06 01:16:30 -06:00
2012-07-23 14:14:54 +01:00
2012-07-02 13:55:36 +02:00
2012-04-10 14:11:34 -06:00
2011-06-06 01:16:30 -06:00
2012-05-19 22:37:16 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2012-07-26 12:57:41 -07:00
2011-06-06 01:16:30 -06:00