summaryrefslogtreecommitdiff
path: root/drivers/misc/altera-stapl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/altera-stapl/Makefile')
-rw-r--r--drivers/misc/altera-stapl/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/altera-stapl/Makefile b/drivers/misc/altera-stapl/Makefile
index dd0f8189666b..90f18e7bf9b0 100644
--- a/drivers/misc/altera-stapl/Makefile
+++ b/drivers/misc/altera-stapl/Makefile
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-altera-stapl-objs = altera-lpt.o altera-jtag.o altera-comp.o altera.o
+altera-stapl-y = altera-jtag.o altera-comp.o altera.o
+altera-stapl-$(CONFIG_HAS_IOPORT) += altera-lpt.o
obj-$(CONFIG_ALTERA_STAPL) += altera-stapl.o