提交 214044b4 编写于 作者: J Jarkko Nikula 提交者: Samuel Ortiz

mfd: Fix menelaus mmc slot 2 misconfiguration

We are modifying register value instead of return value.

This fix is originally done by Carlos Eduardo Aguiar. Original fix is
commit bb4e91722e29efe31587d2cc664b6def645aecd9 in
git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

Author modified the fix for mainline version of menelaus.
Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
Cc: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 8102bad2
...@@ -356,9 +356,9 @@ int menelaus_set_mmc_slot(int slot, int enable, int power, int cd_en) ...@@ -356,9 +356,9 @@ int menelaus_set_mmc_slot(int slot, int enable, int power, int cd_en)
int b; int b;
if (enable) if (enable)
ret |= 1 << 1; val |= 1 << 1;
else else
ret &= ~(1 << 1); val &= ~(1 << 1);
b = menelaus_read_reg(MENELAUS_MCT_CTRL2); b = menelaus_read_reg(MENELAUS_MCT_CTRL2);
b &= ~0x03; b &= ~0x03;
b |= power; b |= power;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册