]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mfd: Fix menelaus mmc slot 2 misconfiguration
authorJarkko Nikula <jhnikula@gmail.com>
Sun, 8 Aug 2010 17:05:23 +0000 (20:05 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 12 Aug 2010 09:28:10 +0000 (11:28 +0200)
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: Jarkko Nikula <jhnikula@gmail.com>
Cc: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/menelaus.c

index a3fb4bcb98897718400da09d23dfd95116b99f58..e02b57423ac439edc34d3f27644bf241d13be4e1 100644 (file)
@@ -356,9 +356,9 @@ int menelaus_set_mmc_slot(int slot, int enable, int power, int cd_en)
                int b;
 
                if (enable)
-                       ret |= 1 << 1;
+                       val |= 1 << 1;
                else
-                       ret &= ~(1 << 1);
+                       val &= ~(1 << 1);
                b = menelaus_read_reg(MENELAUS_MCT_CTRL2);
                b &= ~0x03;
                b |= power;