From: Peter Ujfalusi Date: Thu, 15 Sep 2011 12:39:25 +0000 (+0300) Subject: Input: twl6040-vibra: Use accessor to get revision information X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e968985cb82c011403432c2f2dbd18660780679;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: twl6040-vibra: Use accessor to get revision information Signed-off-by: Peter Ujfalusi Acked-by: Dmitry Torokhov Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/drivers/input/misc/twl6040-vibra.c b/drivers/input/misc/twl6040-vibra.c index c43002e7ec72..154b7a324d67 100644 --- a/drivers/input/misc/twl6040-vibra.c +++ b/drivers/input/misc/twl6040-vibra.c @@ -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