]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
Input: twl6040-vibra: Use accessor to get revision information
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 15 Sep 2011 12:39:25 +0000 (15:39 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Sep 2011 22:15:47 +0000 (23:15 +0100)
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/input/misc/twl6040-vibra.c

index c43002e7ec7286bdf5650f3ce402210c5fefd2f0..154b7a324d671fa949bf49219b98c997cb3442d3 100644 (file)
@@ -97,7 +97,7 @@ static void twl6040_vibra_enable(struct vibra_info *info)
        }
 
        twl6040_power(info->twl6040, 1);
-       if (twl6040->rev <= TWL6040_REV_ES1_1) {
+       if (twl6040_get_revid(twl6040) <= TWL6040_REV_ES1_1) {
                /*
                 * ERRATA: Disable overcurrent protection for at least
                 * 3ms when enabling vibrator drivers to avoid false