Skip to contentSkip to conversation

PHY: Ingenic: fix unconditional build of phy-ingenic-usb

PATCH Applied Alexander Lobakin 3 participants 3 messages Dec 22, 2020 – Dec 23, 2020 Generic PHY framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PHY: Ingenic: fix unconditional build of phy-ingenic-usb

Currently drivers/phy/ingenic/Makefile adds phy-ingenic-usb to targets not depending on actual Kconfig symbol CONFIG_PHY_INGENIC_USB, so this driver always gets built[-in] on every system.
Add missing dependency.

Fixes 31de313dfdcf ("PHY: Ingenic: Add USB PHY driver using generic PHY framework.")
---
 drivers/phy/ingenic/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/ingenic/Makefile +1 -1
index 65d5ea00fc9d..1cb158d7233f 100644
@@ -1,2 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0
-obj-y		+= phy-ingenic-usb.o
+obj-$(CONFIG_PHY_INGENIC_USB)		+= phy-ingenic-usb.o
Signature · 1 line
2.29.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Alexander Lobakin

Currently drivers/phy/ingenic/Makefile adds phy-ingenic-usb to targets not depending on actual Kconfig symbol CONFIG_PHY_INGENIC_USB, so this driver always gets built[-in] on every system.
Add missing dependency.

Applied, thanks

Signature · 1 line
~Vinod
Tested-by on v1 1/1
#2 lore raw
In reply to Alexander Lobakin

Hi Alexander,

Quoted 10 lines · Alexander Lobakin

Currently drivers/phy/ingenic/Makefile adds phy-ingenic-usb to targets not depending on actual Kconfig symbol CONFIG_PHY_INGENIC_USB, so this driver always gets built[-in] on every system.
Add missing dependency.

Fixes 31de313dfdcf ("PHY: Ingenic: Add USB PHY driver using generic PHY framework.")
---
  drivers/phy/ingenic/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Apologize for my carelessness, and

Thanks and best regards!

Quoted 8 lines
drivers/phy/ingenic/Makefile +1 -1
index 65d5ea00fc9d..1cb158d7233f 100644
@@ -1,2 +1,2 @@
  # SPDX-License-Identifier: GPL-2.0
-obj-y		+= phy-ingenic-usb.o
+obj-$(CONFIG_PHY_INGENIC_USB)		+= phy-ingenic-usb.o