From: Wei Yongjun Date: Thu, 16 May 2013 05:11:32 +0000 (+0800) Subject: spi: coldfire-qspi: fix error return code in mcfqspi_probe() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~28^2~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a577f5275e948f96ea1a9bbce5d994ec6db618b;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed