[v2,1/3] phy: ralink: phy-mt7621-pci: add include search path in Makefile
diff mbox series

Message ID 20201201105613.23252-2-sergio.paracuellos@gmail.com
State New, archived
Headers show
  • phy: ralink: phy-mt7621-pci: some fixes for COMPILE_TEST
Related show

Commit Message

Sergio Paracuellos Dec. 1, 2020, 10:56 a.m. UTC
This driver includes the following two files directly:
- mt7621.h
- ralink_regs.h

Compilation for its related platform properly works because
its real path is included in 'arch/mips/ralink/Platform' as

This driver depends on RALINK but also is enabled for COMPILE_TEST
where nothing about its platform is known and this directly
included files are not found at all breaking compilation.

Fix this problem adding include search path for ralink in
ralink phy directory Makefile.

Fixes: d87da32372a0 ("phy: ralink: Add PHY driver for MT7621 PCIe PHY")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
 drivers/phy/ralink/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff mbox series

diff --git a/drivers/phy/ralink/Makefile b/drivers/phy/ralink/Makefile
index cda2a4a7ca5e..c8f9adba0d82 100644
--- a/drivers/phy/ralink/Makefile
+++ b/drivers/phy/ralink/Makefile
@@ -1,3 +1,6 @@ 
 # SPDX-License-Identifier: GPL-2.0-only
+ccflags-y	+= -I$(srctree)/arch/mips/include/asm/mach-ralink
 obj-$(CONFIG_PHY_MT7621_PCI)	+= phy-mt7621-pci.o
 obj-$(CONFIG_PHY_RALINK_USB)	+= phy-ralink-usb.o