Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp929158imu; Thu, 13 Dec 2018 06:48:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/WuGItIMSLTIZKraWE+A8Kzm0YKCSV676A84vNv/ciYa8ejGraLN8x+DKZBHJVXAoeiNykC X-Received: by 2002:a63:d747:: with SMTP id w7mr21772547pgi.360.1544712523530; Thu, 13 Dec 2018 06:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544712523; cv=none; d=google.com; s=arc-20160816; b=t/+RS4KD52JKyQIXncdEFy1gHuUk1/HJAVeHSi2CuHGld/R2e73g5cwpr8Zj0tuhQq rn1wBufXoF1p9yTtI451kqvrZlnx2HwmQB3veFP2qCeH0xNoJdcd2XEZwwIKVMgWlyYM ZTiJhHBdJe55nlZACnHrdM3NlYfsLInNfDHc1AgDsz6zZxdym1wp+OqsV2lep+xy/A0q k2Jj6M+otEHg88Iy+YXwdyQxlEAcCJDJlAS4Xw6R6WmlH7dfGCKGsS531HNo/quCh6TC bpu/0o7Sr6ob9dRdkAGQ66kFE39GITjPkd/kVWdJ/0WfVGtFkHS1L0lzEXH3WC91YE1N 4a9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from; bh=qdVdUvaR2WUq/vrKQ9BM0PkyF6HXTrTJD84/ZZzJuEE=; b=rs/np/ijVcRotVuz1ReV6RzNC4eK7RaWdAhccdpkkGvW/1G/WaTBRgV7q81aLrKEof jnu9QjJ5ai2mKJVC6TF+Fo7HV6vQ5Zsor9f5nwYC7I5IkfTuzhJSKrWQp7DgTDoKOi5I mTAtY/Hina517qhJPpRT9+fcjyCdvzefsm7d78ps3QKRBOhbJGguPjp4d8qPS4i+TEF1 fqjZSbqmC7JMsvt9YgvAkgrYibVduTkq0LkHnUdZwudSxmDoxQHar/Z6gp7BZurs9jW6 yQ3MN0Yqnty1RwKMlVQEn3OdtBVVZfoEp1z/n35Nl/kvFrnUehbs5x4IzhdR2ybxqyGP D+JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=g6vySxA1; 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=pass (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 b11si1673157pla.405.2018.12.13.06.48.29; Thu, 13 Dec 2018 06:48:43 -0800 (PST) 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=pass header.i=@crapouillou.net header.s=mail header.b=g6vySxA1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727947AbeLMOqH (ORCPT + 99 others); Thu, 13 Dec 2018 09:46:07 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:44036 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728654AbeLMOqF (ORCPT ); Thu, 13 Dec 2018 09:46:05 -0500 From: Paul Cercueil To: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Bin Liu Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, od@zcrc.me, Paul Cercueil Subject: [PATCH 2/4] usb: musb: jz4740: Add support for devicetree Date: Thu, 13 Dec 2018 15:45:53 +0100 Message-Id: <20181213144555.24031-2-paul@crapouillou.net> In-Reply-To: <20181213144555.24031-1-paul@crapouillou.net> References: <20181213144555.24031-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1544712363; bh=qdVdUvaR2WUq/vrKQ9BM0PkyF6HXTrTJD84/ZZzJuEE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=g6vySxA1fuWw2xURqQamCxOrbw33KQjABpIuxyC3I82F1Loc/yDg++m/EcDG/XZMcA82IjDapnuMaXYMi4wE09ppaG+yY7JBeQBUbQ+53oH3KqSQqDk68UfAbFLzHXOn4cPKeXcsxsZ3F1QVTYh08Tp9v7QmzxKeaFMpi2sz+PI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for probing the driver from devicetree. Signed-off-by: Paul Cercueil --- drivers/usb/musb/jz4740.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c index 04d8b2bc205a..9a2cebcac260 100644 --- a/drivers/usb/musb/jz4740.c +++ b/drivers/usb/musb/jz4740.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -188,11 +189,17 @@ static int jz4740_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id jz4740_musb_of_match[] = { + { .compatible = "ingenic,jz4740-musb" }, + {}, +}; + static struct platform_driver jz4740_driver = { .probe = jz4740_probe, .remove = jz4740_remove, .driver = { .name = "musb-jz4740", + .of_match_table = of_match_ptr(jz4740_musb_of_match), }, }; -- 2.11.0