From: Bartlomiej Zolnierkiewicz Date: Tue, 25 Mar 2014 18:51:38 +0000 (+0100) Subject: ata: ahci_platform: fix ahci_platform_data->suspend method handling X-Git-Tag: v3.15-rc1~161^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83b03fd67b9b3fa3795871169f3c08c35b3d6ea8;p=pandora-kernel.git ata: ahci_platform: fix ahci_platform_data->suspend method handling Looking at ST SPEAr1340 AHCI code (the only user of the deprecated pdata->suspend and pdata->resume) it is obvious the we should return after calling pdata->suspend() only if the function have returned non-zero return value. The code has been broken since commit 1e70c2 ("ata/ahci_platform: Add clock framework support"). Fix it. Cc: Viresh Kumar Cc: Shiraz Hashim Acked-by: Hans de Goede Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Tejun Heo --- Reading git-diff-tree failed