]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: thermal: fix warning in return value
authorDiwakar Tundlam <dtundlam@nvidia.com>
Thu, 27 Feb 2014 02:37:01 +0000 (18:37 -0800)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Thu, 27 Feb 2014 02:37:01 +0000 (18:37 -0800)
Error was return makes pointer from integer without a cast.

Bug 1454792

Change-Id: Ibe8fc86a30d11a7ca0a31cc9e02c23ddb122fd66
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
arch/arm/mach-tegra/tegra3_throttle.c

index b9a81f3e45cd943724542f55e1f819fb90b25f68..e05f1b4526782313e0be10cb22a153c419581a45 100644 (file)
@@ -330,7 +330,7 @@ struct thermal_cooling_device *balanced_throttle_register(
        if (!throttle_debugfs_root || IS_ERR_OR_NULL(
                debugfs_create_file(name, 0644, throttle_debugfs_root,
                                        bthrot, &table_fops)))
-                       return -EINVAL;
+               return ERR_PTR(-ENODEV);
 #endif
 
        bthrot->cdev = thermal_cooling_device_register(