summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-ath79.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-16 13:11:32 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-16 19:21:50 +0100
commit4a577f5275e948f96ea1a9bbce5d994ec6db618b (patch)
treec668f6925c6a00c7d2bc279d0dcd0a99e6784a3b /drivers/spi/spi-ath79.c
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
downloadlinux-4a577f5275e948f96ea1a9bbce5d994ec6db618b.tar.bz2
spi: coldfire-qspi: fix error return code in mcfqspi_probe()
If pdev->dev.platform_data is not set, mcfqspi_probe() will return 0 and release all the resources, in this case, we should return a error code instead of 0. This patch fix to return -ENOENT in this case and move the check for pdev->dev.platform_data to the begin of this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-ath79.c')
0 files changed, 0 insertions, 0 deletions