treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / usb / mtu3 / Makefile
blob3bf8cbcc1addbe04dade322995887351c641f65d
1 # SPDX-License-Identifier: GPL-2.0
3 ccflags-$(CONFIG_USB_MTU3_DEBUG) += -DDEBUG
5 # define_trace.h needs to know how to find our header
6 CFLAGS_mtu3_trace.o := -I$(src)
8 obj-$(CONFIG_USB_MTU3) += mtu3.o
10 mtu3-y := mtu3_plat.o
12 ifneq ($(CONFIG_TRACING),)
13 mtu3-y += mtu3_trace.o
14 endif
16 ifneq ($(filter y,$(CONFIG_USB_MTU3_HOST) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
17 mtu3-y += mtu3_host.o
18 endif
20 ifneq ($(filter y,$(CONFIG_USB_MTU3_GADGET) $(CONFIG_USB_MTU3_DUAL_ROLE)),)
21 mtu3-y += mtu3_core.o mtu3_gadget_ep0.o mtu3_gadget.o mtu3_qmu.o
22 endif
24 ifneq ($(CONFIG_USB_MTU3_DUAL_ROLE),)
25 mtu3-y += mtu3_dr.o
26 endif
28 ifneq ($(CONFIG_DEBUG_FS),)
29 mtu3-y += mtu3_debugfs.o
30 endif