Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1484644

[PATCH] phy: meson-usb2: Fix build dependency

From Axel Lin <axel.lin@ingics.com>
Newsgroups linux.kernel
Subject [PATCH] phy: meson-usb2: Fix build dependency
Date 2016-09-16 04:10 +0200
Message-ID <shQLf-6I2-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


of_usb_get_dr_mode_by_phy will not be compiled if !USB_COMMON, fix below
build error:

drivers/built-in.o: In function `phy_meson_usb2_probe':
debugfs.c:(.text+0x76b4): undefined reference to `of_usb_get_dr_mode_by_phy'
Makefile:961: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/phy/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index 6ad87ec..cc27c12 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -458,6 +458,8 @@ config PHY_MESON_USB2
 	tristate "Meson USB2 PHY driver"
 	default ARCH_MESON
 	depends on OF && (ARCH_MESON || COMPILE_TEST)
+	depends on USB_SUPPORT
+	select USB_COMMON
 	select GENERIC_PHY
 	help
 	  Enable this to support the Meson USB2 PHYs found in Meson8b
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] phy: meson-usb2: Fix build dependency Axel Lin <axel.lin@ingics.com> - 2016-09-16 04:10 +0200
  Re: [PATCH] phy: meson-usb2: Fix build dependency Martin Blumenstingl <martin.blumenstingl@googlemail.com> - 2016-09-18 23:50 +0200
    Re: [PATCH] phy: meson-usb2: Fix build dependency Kevin Hilman <khilman@baylibre.com> - 2016-09-19 18:50 +0200
      Re: [PATCH] phy: meson-usb2: Fix build dependency Kishon Vijay Abraham I <kishon@ti.com> - 2016-09-21 06:10 +0200
        Re: [PATCH] phy: meson-usb2: Fix build dependency Axel Lin <axel.lin@ingics.com> - 2016-09-21 06:20 +0200
          Re: [PATCH] phy: meson-usb2: Fix build dependency Kevin Hilman <khilman@baylibre.com> - 2016-09-21 07:20 +0200

csiph-web