From patchwork Fri Dec 15 10:20:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 10114647 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DB8A260231 for ; Fri, 15 Dec 2017 10:20:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBAA129B82 for ; Fri, 15 Dec 2017 10:20:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD71F29C2C; Fri, 15 Dec 2017 10:20:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DDEB29B82 for ; Fri, 15 Dec 2017 10:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754437AbdLOKUm (ORCPT ); Fri, 15 Dec 2017 05:20:42 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53364 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753942AbdLOKUh (ORCPT ); Fri, 15 Dec 2017 05:20:37 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 624F51435; Fri, 15 Dec 2017 02:20:37 -0800 (PST) Received: from login2.euhpc.arm.com (login2.euhpc.arm.com [10.6.26.144]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2FE0D3F236; Fri, 15 Dec 2017 02:20:36 -0800 (PST) From: Vladimir Murzin To: linux-renesas-soc@vger.kernel.org Cc: horms+renesas@verge.net.au, kishon@ti.com, yoshihiro.shimoda.uh@renesas.com, arnd@arndb.de, linux-kernel@vger.kernel.org Subject: [PATCH] phy: rcar-gen3-usb2: add dependency on USB Date: Fri, 15 Dec 2017 10:20:20 +0000 Message-Id: <1513333220-44070-1-git-send-email-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.0.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Following error showed up: drivers/phy/renesas/phy-rcar-gen3-usb2.o: In function `rcar_gen3_phy_usb2_probe': /work/tools/linux/drivers/phy/renesas/phy-rcar-gen3-usb2.c:444: undefined reference to `of_usb_get_dr_mode_by_phy' Makefile:993: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 with CONFIG_USB_SUPPORT=n Add dependency on USB_SUPPORT and select USB_COMMON to make sure that of_usb_get_dr_mode_by_phy() is available. Signed-off-by: Vladimir Murzin --- drivers/phy/renesas/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/renesas/Kconfig b/drivers/phy/renesas/Kconfig index cb09245..c845fac 100644 --- a/drivers/phy/renesas/Kconfig +++ b/drivers/phy/renesas/Kconfig @@ -12,7 +12,9 @@ config PHY_RCAR_GEN3_USB2 tristate "Renesas R-Car generation 3 USB 2.0 PHY driver" depends on ARCH_RENESAS depends on EXTCON + depends on USB_SUPPORT select GENERIC_PHY + select USB_COMMON help Support for USB 2.0 PHY found on Renesas R-Car generation 3 SoCs.