diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-04-04 11:25:10 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-04-04 10:18:05 -0400 |
commit | f2f942ce4a800b2179a5a5023922517b875a6787 (patch) | |
tree | cb51ecaa40e251ad5401e406398ac1f3b1f6dfe6 /fs/stack.c | |
parent | b0dd099ceb04146b68aa7109bcd426dc74cb64ac (diff) | |
download | linux-3.10-f2f942ce4a800b2179a5a5023922517b875a6787.tar.gz linux-3.10-f2f942ce4a800b2179a5a5023922517b875a6787.tar.bz2 linux-3.10-f2f942ce4a800b2179a5a5023922517b875a6787.zip |
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 <sachin.kamat@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions