From: Sachin Kamat Date: Thu, 4 Apr 2013 05:55:10 +0000 (+0530) Subject: mmc: dw_mmc: Check return value of regulator_enable X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~41^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2f942ce4a800b2179a5a5023922517b875a6787;p=pandora-kernel.git mmc: dw_mmc: Check return value of regulator_enable regulator_enable() is declared with __must_check attribute. Hence check the return value to ensure that the regulator is enabled. Fixes the following warning: drivers/mmc/host/dw_mmc.c:2461:19: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] drivers/mmc/host/dw_mmc.c: In function ‘dw_mci_init_slot’: drivers/mmc/host/dw_mmc.c:1994:19: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Sachin Kamat Acked-by: Jaehoon Chung Acked-by: Seungwon Jeon Signed-off-by: Chris Ball --- Reading git-diff-tree failed