From: Marc Ohlf Date: Thu, 11 May 2017 16:12:19 +0000 (+0200) Subject: soc: imx: gpc: build gpc only if hardware has gpc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c465a32fdde67c029ba8880f2878491042b72524;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git soc: imx: gpc: build gpc only if hardware has gpc Add CONFIG_HAVE_IMX_GPC to goal definition of gpc.o, to avoid building it for hardware that does not need it. Signed-off-by: Marc Ohlf Reviewed-by: Lucas Stach Signed-off-by: Shawn Guo --- diff --git a/drivers/soc/imx/Makefile b/drivers/soc/imx/Makefile index 5b6e396c1121..aab41a5cc317 100644 --- a/drivers/soc/imx/Makefile +++ b/drivers/soc/imx/Makefile @@ -1,2 +1,2 @@ -obj-y += gpc.o +obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o