ARM: tegra: dvfs: Simplify rail cooling device validation
Alex Frid [Sun, 21 Apr 2013 01:52:19 +0000 (18:52 -0700)]
Thermal limits and trip-points tables are validated by platform code,
when bound to the particular rail - skipped double check of matching
numbers during common dvfs rail initialization. Still checking if
there is a cooling device when valid thermal limits are set.

Change-Id: I5b05430c988e20fcee0305e5a91636ac81b9d0ac
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221372
(cherry picked from commit 5b24181a1c90a7e3c33da00c35806396c01fa209)
Reviewed-on: http://git-master/r/221868
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

arch/arm/mach-tegra/dvfs.c

index bb625fb..5a25d79 100644 (file)
@@ -74,15 +74,6 @@ static void dvfs_validate_cdevs(struct dvfs_rail *rail)
                WARN(1, "%s: not matching thermal floors/num\n", rail->reg_id);
        }
 
-       if (rail->vmin_cdev) {
-               if (rail->vmin_cdev->trip_temperatures_num !=
-                   rail->therm_mv_floors_num) {
-                       rail->vmin_cdev = NULL;
-                       WARN(1, "%s: not matching thermal floors/trips\n",
-                            rail->reg_id);
-               }
-       }
-
        if (rail->therm_mv_floors && !rail->vmin_cdev)
                WARN(1, "%s: missing vmin cooling device\n", rail->reg_id);
 }