Commit d776f654 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka
Browse files

accel/ivpu: Compile ivpu_debugfs.c conditionally

parent c78199a7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
# Copyright (C) 2023 Intel Corporation

intel_vpu-y := \
	ivpu_debugfs.o \
	ivpu_drv.o \
	ivpu_fw.o \
	ivpu_fw_log.o \
@@ -16,4 +15,6 @@ intel_vpu-y := \
	ivpu_mmu_context.o \
	ivpu_pm.o

intel_vpu-$(CONFIG_DEBUG_FS) += ivpu_debugfs.o

obj-$(CONFIG_DRM_ACCEL_IVPU) += intel_vpu.o
+4 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@

struct ivpu_device;

#if defined(CONFIG_DEBUG_FS)
void ivpu_debugfs_init(struct ivpu_device *vdev);
#else
static inline void ivpu_debugfs_init(struct ivpu_device *vdev) { }
#endif

#endif /* __IVPU_DEBUGFS_H__ */
+0 −2
Original line number Diff line number Diff line
@@ -627,9 +627,7 @@ static int ivpu_probe(struct pci_dev *pdev, const struct pci_device_id *id)
	if (ret)
		return ret;

#if defined(CONFIG_DEBUG_FS)
	ivpu_debugfs_init(vdev);
#endif

	ret = drm_dev_register(&vdev->drm, 0);
	if (ret) {