Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1397292img; Tue, 19 Mar 2019 06:54:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQIsWI/4DL5uVeWibCSeGsLZe1zv+itWOMUxyGsPG0hCbXmgYEDfHLBZJyXrqCL9EuykMT X-Received: by 2002:a63:cd06:: with SMTP id i6mr1982401pgg.267.1553003658176; Tue, 19 Mar 2019 06:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553003658; cv=none; d=google.com; s=arc-20160816; b=bCU4PfAVNYJu4tzyGhm1hkxMr96bAgrCEym1OV7Q633dQc8KX7WSyKn7NTg99kOn5A jelfQIPxViB5bRBssUBO/soHI8+ZbHRoOUHzyzV5LuXct9lihFx2atwP+++fnGSCpkAf afa9MOHvLJgQJmFqAmmuFwz60E3sGzGV59XtVmseh8SiXwluJep4SPkX7IPFFhiYkp6D d5YQID6cKcpfdGez3sox9N34IoQ2vNYvOGNBN8pEVSSwAE7iEpqD3aaq+tt7DsI3J+Rm TzHAuYDMgzNdutFDWoTV4/nP8C6Q/URE3ZbXQ8lg/l0eEz6nlYtSPq3nmI6UODjidG4p ooew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=13ybQO1lo/UgcybEPzuD28JlMQVR6h+cJlGCnO57j3c=; b=x1GAFU3+X8aobI9g/R5kKOzF0BVwsP3ln4wCdFSMhaEXsbpyuGrWNO5S06TZPUDusU uA3nPT3pXEPeREnr2CiKSVY6fRGaWopfGwbgCU++s8DHRupn/bUShc9kwpUjcInAOWyz OYTdUYKpOClJvI+ZkdvhAB5ZEawKBXL89UcXP1UL/iN+R9LB9wuBgCYCbBO0ayUy3bSA 0Frd46UlcI6JQSVos/9851troxbrofp4rr7iKpINU52ZhfVHF52mmtwKYiSol4/LwY8j YNqtziYPkano1Z9zhJplbpy0A8A7pCL8/y1v+ShebnmsfRDUawLuuQursCAASZapGy8L xPdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=ViEfFk7G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si11985438plk.67.2019.03.19.06.54.02; Tue, 19 Mar 2019 06:54:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=ViEfFk7G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727549AbfCSNvz (ORCPT + 99 others); Tue, 19 Mar 2019 09:51:55 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:39110 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfCSNvz (ORCPT ); Tue, 19 Mar 2019 09:51:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1553003512; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=13ybQO1lo/UgcybEPzuD28JlMQVR6h+cJlGCnO57j3c=; b=ViEfFk7GqLKco8h53w5RoaN9sw+0MX8pe3eQR8bWthWuE71D9pHdhH/kWD4qAoazUpoo3h z2iV3C+zxoW4yCWSPNc1pcrtxHJ3qfFMPoSW0V9PxS3C2As/UQiC9tC3RmxrBxnLTCMTFL RYjH7idv6VOs2l237nYQSRwtyea8kc0= From: Paul Cercueil To: Bin Liu Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH] usb: musb: Silence error about blacklisting hubs if !CONFIG_USB Date: Tue, 19 Mar 2019 14:51:46 +0100 Message-Id: <20190319135146.25995-1-paul@crapouillou.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some drivers, like jz4740-musb, don't depend on CONFIG_USB. Signed-off-by: Paul Cercueil --- drivers/usb/musb/musb_core.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index b7d56272f9d1..9f5a4819a744 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1497,10 +1497,11 @@ static int musb_core_init(u16 musb_type, struct musb *musb) } else { musb->is_multipoint = 0; type = ""; -#ifndef CONFIG_USB_OTG_BLACKLIST_HUB - pr_err("%s: kernel must blacklist external hubs\n", - musb_driver_name); -#endif + if (IS_ENABLED(CONFIG_USB) && + !IS_ENABLED(CONFIG_USB_OTG_BLACKLIST_HUB)) { + pr_err("%s: kernel must blacklist external hubs\n", + musb_driver_name); + } } /* log release info */ -- 2.11.0