PHY: Ingenic: compile phy-ingenic-usb only if it was enabled
diff mbox series

Message ID 20210123150146.11208-1-hqjagain@gmail.com
State New, archived
Headers show
Series
  • PHY: Ingenic: compile phy-ingenic-usb only if it was enabled
Related show

Commit Message

Qiujun Huang Jan. 23, 2021, 3:01 p.m. UTC
We should compile this driver only if we opened PHY_INGENIC_USB.

Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
---
 drivers/phy/ingenic/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Cercueil Jan. 24, 2021, 8:36 a.m. UTC | #1
Hi, thank you for your patch.


Le sam. 23 janv. 2021 à 23:01, Qiujun Huang <hqjagain@gmail.com> a 
écrit :
> We should compile this driver only if we opened PHY_INGENIC_USB.

'opened' -> 'enable'.

> Signed-off-by: Qiujun Huang <hqjagain@gmail.com>

You will need to add a Fixes: tag and Cc linux-stable, since the 
problem is already in 5.10.

Cheers,
-Paul

> ---
>  drivers/phy/ingenic/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/phy/ingenic/Makefile 
> b/drivers/phy/ingenic/Makefile
> index 65d5ea00fc9d..a00306651423 100644
> --- a/drivers/phy/ingenic/Makefile
> +++ b/drivers/phy/ingenic/Makefile
> @@ -1,2 +1,2 @@
>  # SPDX-License-Identifier: GPL-2.0
> -obj-y		+= phy-ingenic-usb.o
> +obj-$(PHY_INGENIC_USB)		+= phy-ingenic-usb.o
> --
> 2.25.1
>

Patch
diff mbox series

diff --git a/drivers/phy/ingenic/Makefile b/drivers/phy/ingenic/Makefile
index 65d5ea00fc9d..a00306651423 100644
--- a/drivers/phy/ingenic/Makefile
+++ b/drivers/phy/ingenic/Makefile
@@ -1,2 +1,2 @@ 
 # SPDX-License-Identifier: GPL-2.0
-obj-y		+= phy-ingenic-usb.o
+obj-$(PHY_INGENIC_USB)		+= phy-ingenic-usb.o