Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3913318imu; Mon, 7 Jan 2019 11:48:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vc4xBmg5+j3zF4gjk+xfCIF3FfOm0xKL3kn9b/BtYpP94PWGU0ZVDfI2LVmDeT2r/LikE8 X-Received: by 2002:a62:3241:: with SMTP id y62mr64057225pfy.178.1546890536406; Mon, 07 Jan 2019 11:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546890536; cv=none; d=google.com; s=arc-20160816; b=b4MMBKcGpDep4f7XNF1wZymR0V5KPpdMJUxzywdTuVCKil85m7I53It/NADwUUCkVV hSu2d9GJuCsunAR9vZYvng8uaoUUYBgqlZD6Nt02Fmdi31jFGejGDm2cnqI+q0+mhrZD 1Ci4bvPoZXYjh+5Wa86e/lmweoBkQVJdMhNri+ycH9a7pvTBpBOp6dL3xzyJ3XrZYYZj f/DVAHW2dVvLEaTaBiK4aQulAZRQH+5l8OA2XoEjWgU0ia7RHJv49KafbIVNbTPHB6z+ 41KET0kaN9JyM1qLgfzO20oQm1a2jTPvs02GqJGGq8tQe5AVOPjHuoua7TrZB54m87/Z v8yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=OAFsEGX65HZt0ksZDgtSE5/pDgQZSHK+rmU6cGkmFUg=; b=yoAykmbPAxoOX0xWGFfftwBnTR5XSTN3oyFin+WTd72yKxYRG3noolpB+CVL01Toln OZ76v8MY2Sq1459k9m2LIqzabZ9uaX7n3nEdTZ/KVjmr/zU+AoYFMchbLGBAP4Y6kBTc F+mYLsAtEahOkLCgPtOPggkaHkJQqQoRnyBQv4+X5b0ki11VKZKDhUDKZvyGnH6PtwWW 6KeoufNA2Oi1Hyb+8OMY0awcjFNcfGZ9PdR87s+wpW1SBOl73hizpUJsapXJp/vcd9VE OuL7wih3Y3EqatXTvHtsqBfRxEgSIfuOiG1vaw7UIFNyLomc7Z4s8Xbf6eoQ4YpJHHGW LkzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=p4tVf4gP; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q73si8959484pfi.205.2019.01.07.11.48.40; Mon, 07 Jan 2019 11:48:56 -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=@ti.com header.s=ti-com-17Q1 header.b=p4tVf4gP; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727637AbfAGTrg (ORCPT + 99 others); Mon, 7 Jan 2019 14:47:36 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:39118 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfAGTrf (ORCPT ); Mon, 7 Jan 2019 14:47:35 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x07JlQXR027689; Mon, 7 Jan 2019 13:47:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546890446; bh=OAFsEGX65HZt0ksZDgtSE5/pDgQZSHK+rmU6cGkmFUg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=p4tVf4gPsAz1DJKY56Grn/SahFlqKoeU5SLaQsk8NcI4SePXmXJwLtVapkJSAs1Ef lYF0aa5k/aUJlsiGhVAMnYxVJO9M39CL+pLa78eWnnmaGb8QQRNwFvNPhd0ULkM9Xf ZVVtolReFFhlNR7iWAIiD4x2tePODxN1yFrtEB7s= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x07JlQ8p047721 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Jan 2019 13:47:26 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 7 Jan 2019 13:47:26 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 7 Jan 2019 13:47:25 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x07JlPZ2028921; Mon, 7 Jan 2019 13:47:25 -0600 Date: Mon, 7 Jan 2019 13:47:25 -0600 From: Bin Liu To: Paul Cercueil CC: Greg Kroah-Hartman , Rob Herring , Mark Rutland , , , , Subject: Re: [PATCH 2/4] usb: musb: jz4740: Add support for devicetree Message-ID: <20190107194725.GB25910@uda0271908> Mail-Followup-To: Bin Liu , Paul Cercueil , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, od@zcrc.me References: <20181213144555.24031-1-paul@crapouillou.net> <20181213144555.24031-2-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181213144555.24031-2-paul@crapouillou.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Dec 13, 2018 at 03:45:53PM +0100, Paul Cercueil wrote: > 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" }, > + {}, > +}; should be wrapped by '#ifdef CONFIG_OF'? miss MODULE_DEVICE_TABLE() > + > 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), > }, > }; > Regards, -Bin.