* [PATCH] ARM: davinci: PM: fix build when da850 not compiled in
@ 2016-11-16 16:44 Kevin Hilman
2016-11-20 11:29 ` Sekhar Nori
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2016-11-16 16:44 UTC (permalink / raw)
To: linux-arm-kernel
Currently, suspend/resume support is only available on da850 platforms,
and the platform PM code has dependencies on da850 functions. However,
CONFIG_SUSPEND might be enabled even when da850 support is not, causing
build failure:
arch/arm/mach-davinci/built-in.o: In function `davinci_pm_init':
pm_domain.c:(.init.text+0x1fb8): undefined reference to `da8xx_get_mem_ctlr'
pm_domain.c:(.init.text+0x20b0): undefined reference to `da8xx_syscfg1_base'
Fix this by only building the PM core when da850 is enabled.
Reported-by: Sekhar Nori <nsekhar@ti.com>
Fixes: aa9aa1ec2df6 ARM: davinci: PM: rework init, remove platform device
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
---
arch/arm/mach-davinci/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile
index da4c336b4637..0a2e6da45f28 100644
--- a/arch/arm/mach-davinci/Makefile
+++ b/arch/arm/mach-davinci/Makefile
@@ -36,5 +36,7 @@ obj-$(CONFIG_MACH_OMAPL138_HAWKBOARD) += board-omapl138-hawk.o
# Power Management
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
-obj-$(CONFIG_SUSPEND) += pm.o sleep.o
obj-$(CONFIG_HAVE_CLK) += pm_domain.o
+ifeq ($(CONFIG_SUSPEND),y)
+obj-$(CONFIG_ARCH_DAVINCI_DA850) += pm.o sleep.o
+endif
--
2.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: davinci: PM: fix build when da850 not compiled in
2016-11-16 16:44 [PATCH] ARM: davinci: PM: fix build when da850 not compiled in Kevin Hilman
@ 2016-11-20 11:29 ` Sekhar Nori
2016-11-22 16:39 ` Kevin Hilman
0 siblings, 1 reply; 3+ messages in thread
From: Sekhar Nori @ 2016-11-20 11:29 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 16 November 2016 10:14 PM, Kevin Hilman wrote:
> Currently, suspend/resume support is only available on da850 platforms,
> and the platform PM code has dependencies on da850 functions. However,
> CONFIG_SUSPEND might be enabled even when da850 support is not, causing
> build failure:
>
> arch/arm/mach-davinci/built-in.o: In function `davinci_pm_init':
> pm_domain.c:(.init.text+0x1fb8): undefined reference to `da8xx_get_mem_ctlr'
> pm_domain.c:(.init.text+0x20b0): undefined reference to `da8xx_syscfg1_base'
>
> Fix this by only building the PM core when da850 is enabled.
>
> Reported-by: Sekhar Nori <nsekhar@ti.com>
> Fixes: aa9aa1ec2df6 ARM: davinci: PM: rework init, remove platform device
> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Applied. Documentation asks for ("") around commit headline in Fixes:
tag, so I added that.
Thanks
Sekhar
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH] ARM: davinci: PM: fix build when da850 not compiled in
2016-11-20 11:29 ` Sekhar Nori
@ 2016-11-22 16:39 ` Kevin Hilman
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2016-11-22 16:39 UTC (permalink / raw)
To: linux-arm-kernel
Sekhar Nori <nsekhar@ti.com> writes:
> On Wednesday 16 November 2016 10:14 PM, Kevin Hilman wrote:
>> Currently, suspend/resume support is only available on da850 platforms,
>> and the platform PM code has dependencies on da850 functions. However,
>> CONFIG_SUSPEND might be enabled even when da850 support is not, causing
>> build failure:
>>
>> arch/arm/mach-davinci/built-in.o: In function `davinci_pm_init':
>> pm_domain.c:(.init.text+0x1fb8): undefined reference to `da8xx_get_mem_ctlr'
>> pm_domain.c:(.init.text+0x20b0): undefined reference to `da8xx_syscfg1_base'
>>
>> Fix this by only building the PM core when da850 is enabled.
>>
>> Reported-by: Sekhar Nori <nsekhar@ti.com>
>> Fixes: aa9aa1ec2df6 ARM: davinci: PM: rework init, remove platform device
>> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
>
> Applied. Documentation asks for ("") around commit headline in Fixes:
> tag, so I added that.
Thanks,
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-22 16:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 16:44 [PATCH] ARM: davinci: PM: fix build when da850 not compiled in Kevin Hilman
2016-11-20 11:29 ` Sekhar Nori
2016-11-22 16:39 ` Kevin Hilman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.