]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
soc: imx: gpc: build gpc only if hardware has gpc
authorMarc Ohlf <ohlf@mkt-sys.de>
Thu, 11 May 2017 16:12:19 +0000 (18:12 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 May 2017 02:22:25 +0000 (10:22 +0800)
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>
drivers/soc/imx/Makefile

index 5b6e396c1121afc4e9d712d471bb02529c99522b..aab41a5cc31790fdc00bc362035852e258b9c59c 100644 (file)
@@ -1,2 +1,2 @@
-obj-y += gpc.o
+obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
 obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o