arm: tegra: fix "malformed early option" warning
Deepesh Gujarathi [Fri, 7 Oct 2011 09:48:30 +0000 (14:48 +0530)]
early_param expects return value 0 for success as
opposed to 1 in case of set_param handler.

Bug 875134

Change-Id: I3eaf540a44fef4d211add399cedc258314266ed0
Reviewed-on: http://git-master/r/56638
Tested-by: Deepesh Gujarathi <dgujarathi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

Rebase-Id: Rbcbd37982e85a4cbad71319945efbc0ab6052d90

arch/arm/mach-tegra/common.c

index 94597dd..886ced0 100644 (file)
@@ -335,7 +335,7 @@ static int __init tegra_pmu_core_edp(char *options)
        int core_edp = memparse(p, &p);
        if (core_edp != 0)
                pmu_core_edp = core_edp;
-       return 1;
+       return 0;
 }
 early_param("core_edp_mv", tegra_pmu_core_edp);