summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-03-19 15:11:29 +0200
committerJuha Tukkinen <jtukkinen@nvidia.com>2014-03-20 01:33:40 -0700
commit2ac552524fd9ac0f4a8a1b28cb35e1a2896a37a7 (patch)
tree331800ab27cebec506665895f0183e318c9bf0bb /arch/arm/mach-tegra/include
parentb735cb3377e71740e2515dfc2bb4b768a06dcb77 (diff)
arm: tegra: Stub pm domain defines to funcs
Turn stub pm domain defines into functions. This prevents build failures if the caller declares a variable just to be passed to these functions. Change-Id: I6dce238f3085c3e454e4bf658d87c6a2e1d388d8 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/383870 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include')
-rw-r--r--arch/arm/mach-tegra/include/mach/pm_domains.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/include/mach/pm_domains.h b/arch/arm/mach-tegra/include/mach/pm_domains.h
index ee3193b40520..783617cd2ae6 100644
--- a/arch/arm/mach-tegra/include/mach/pm_domains.h
+++ b/arch/arm/mach-tegra/include/mach/pm_domains.h
@@ -1,7 +1,7 @@
/*
* arch/arm/mach-tegra/include/mach/pm_domains.h
*
- * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -40,9 +40,9 @@ void tegra_pd_add_device(struct device *dev);
void tegra_pd_remove_device(struct device *dev);
void tegra_pd_add_sd(struct generic_pm_domain *sd);
#else
-#define tegra_pd_add_device(dev) do { } while (0)
-#define tegra_pd_remove_device(dev) do { } while (0)
-#define tegra_pd_add_sd(sd) do { } while (0)
+static inline void tegra_pd_add_device(struct device *dev) { }
+static inline void tegra_pd_remove_device(struct device *dev) { }
+static inline void tegra_pd_add_sd(struct generic_pm_domain *sd) { }
#endif /* CONFIG_TEGRA_MC_DOMAINS */
#endif /* _MACH_TEGRA_PM_DOMAINS_H_ */