Skip to contentSkip to conversation

amba: tegra-ahb: Fix build error w/ PM_SLEEP w/o PM_RUNTIME

PATCH In review Hiroshi Doyu 3 participants 4 messages Mar 14, 2013 – Mar 15, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amba: tegra-ahb: Fix build error w/ PM_SLEEP w/o PM_RUNTIME

Make this depend on CONFIG_PM. This protection is necessary to not cause any build errors with any combination of PM features especially when supporting a new SoC where each PM features are being enabled one-by-one during its depelopment.

---
 drivers/amba/tegra-ahb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/amba/tegra-ahb.c +1 -1
index 093c435..1f44e56 100644
@@ -158,7 +158,7 @@ int tegra_ahb_enable_smmu(struct device_node *dn)
 EXPORT_SYMBOL(tegra_ahb_enable_smmu);
 #endif
 
-#ifdef CONFIG_PM_SLEEP
+#ifdef CONFIG_PM
 static int tegra_ahb_suspend(struct device *dev)
 {
 	int i;
Signature · 1 line
1.8.1.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Hiroshi Doyu

Make this depend on CONFIG_PM. This protection is necessary to not cause any build errors with any combination of PM features especially when supporting a new SoC where each PM features are being enabled one-by-one during its depelopment.

---
 drivers/amba/tegra-ahb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/amba/tegra-ahb.c +0 -0
index 093c435..1f44e56 100644

drivers/amba/tegra-ahb.c int tegra_ahb_enable_smmu(struct device_node *dn) · line 164

Quoted 8 lines
drivers/amba/tegra-ahb.c +1 -1
@@ -158,7 +158,7 @@ int tegra_ahb_enable_smmu(struct device_node *dn)
 EXPORT_SYMBOL(tegra_ahb_enable_smmu);
 #endif
 
-#ifdef CONFIG_PM_SLEEP
+#ifdef CONFIG_PM
 static int tegra_ahb_suspend(struct device *dev)
 {
 	int i;
Acked-by on v1 1/1
#2 lore raw
In reply to Hiroshi Doyu
Quoted 4 lines · Hiroshi Doyu

Make this depend on CONFIG_PM. This protection is necessary to not cause any build errors with any combination of PM features especially when supporting a new SoC where each PM features are being enabled one-by-one during its depelopment.

Looks fine to me.

I assume Russell will want this to go through his patch tracker.

#3 lore raw

Stephen Warren <[email protected]> wrote @ Fri, 15 Mar 2013 06:23:38 +0100:

Quoted 11 lines · Hiroshi Doyu
Quoted 4 lines

Make this depend on CONFIG_PM. This protection is necessary to not cause any build errors with any combination of PM features especially when supporting a new SoC where each PM features are being enabled one-by-one during its depelopment.

Looks fine to me.

I assume Russell will want this to go through his patch tracker.

FYI: Patch has been accepted as patch 7675/1