summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorMarc Ohlf <ohlf@mkt-sys.de>2017-05-11 18:12:19 +0200
committerShawn Guo <shawnguo@kernel.org>2017-05-15 10:22:25 +0800
commitc465a32fdde67c029ba8880f2878491042b72524 (patch)
tree9ee4f875a2c5e47363af7505b108f596ac7ca826 /drivers/soc
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
downloadlinux-stable-c465a32fdde67c029ba8880f2878491042b72524.tar.gz
linux-stable-c465a32fdde67c029ba8880f2878491042b72524.tar.bz2
linux-stable-c465a32fdde67c029ba8880f2878491042b72524.zip
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 <ohlf@mkt-sys.de> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/imx/Makefile2
1 files changed, 1 insertions, 1 deletions
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