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>
This commit is contained in:
Marc Ohlf 2017-05-11 18:12:19 +02:00 committed by Shawn Guo
parent 2ea659a9ef
commit c465a32fdd

View file

@ -1,2 +1,2 @@
obj-y += gpc.o
obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o