From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756919AbcIPCHf (ORCPT ); Thu, 15 Sep 2016 22:07:35 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35595 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751627AbcIPCH0 (ORCPT ); Thu, 15 Sep 2016 22:07:26 -0400 From: Axel Lin To: Kevin Hilman Cc: Kishon Vijay Abraham I , Martin Blumenstingl , Jerome Brunet , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH] phy: meson-usb2: Fix build dependency Date: Fri, 16 Sep 2016 10:07:15 +0800 Message-Id: <1473991635-27973-1-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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