2015-07-27 07:37:39

by Masahiro Yamada

[permalink] [raw]
Subject: [PATCH] clk: zynq: remove redundant $(CONFIG_ARCH_ZYNQ) in Makefile

Kbuild descends into drivers/clk/zynq/ only when CONFIG_ARCH_ZYNQ
is enabled. (see drivers/clk/Makefile)

$(CONFIG_ARCH_ZYNQ) in drivers/clk/zynq/Makefile always evaluates
to 'y'.

Signed-off-by: Masahiro Yamada <[email protected]>
---

drivers/clk/zynq/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/zynq/Makefile b/drivers/clk/zynq/Makefile
index 156d923..0afc2e7 100644
--- a/drivers/clk/zynq/Makefile
+++ b/drivers/clk/zynq/Makefile
@@ -1,3 +1,3 @@
# Zynq clock specific Makefile

-obj-$(CONFIG_ARCH_ZYNQ) += clkc.o pll.o
+obj-y += clkc.o pll.o
--
1.9.1


2015-07-27 08:21:41

by Michal Simek

[permalink] [raw]
Subject: Re: [PATCH] clk: zynq: remove redundant $(CONFIG_ARCH_ZYNQ) in Makefile

On 07/27/2015 09:36 AM, Masahiro Yamada wrote:
> Kbuild descends into drivers/clk/zynq/ only when CONFIG_ARCH_ZYNQ
> is enabled. (see drivers/clk/Makefile)
>
> $(CONFIG_ARCH_ZYNQ) in drivers/clk/zynq/Makefile always evaluates
> to 'y'.
>
> Signed-off-by: Masahiro Yamada <[email protected]>
> ---
>
> drivers/clk/zynq/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/zynq/Makefile b/drivers/clk/zynq/Makefile
> index 156d923..0afc2e7 100644
> --- a/drivers/clk/zynq/Makefile
> +++ b/drivers/clk/zynq/Makefile
> @@ -1,3 +1,3 @@
> # Zynq clock specific Makefile
>
> -obj-$(CONFIG_ARCH_ZYNQ) += clkc.o pll.o
> +obj-y += clkc.o pll.o
>

Applied to zynq/soc branch and will go to mainline via arm-soc.
Let me know if someone else wants to take it via different tree.

Thanks,
Michal

--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: http://www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform



Attachments:
signature.asc (198.00 B)
OpenPGP digital signature