From patchwork Tue Nov 8 18:58:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 9417993 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 1737460459 for ; Tue, 8 Nov 2016 19:05:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 081A3289F8 for ; Tue, 8 Nov 2016 19:05:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF77828A15; Tue, 8 Nov 2016 19:05:51 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8A782289F8 for ; Tue, 8 Nov 2016 19:05:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4Bgx-0007aV-Nt; Tue, 08 Nov 2016 19:04:19 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4Bbl-0001qN-Im for linux-arm-kernel@lists.infradead.org; Tue, 08 Nov 2016 18:59:00 +0000 Received: by mail-wm0-x22b.google.com with SMTP id t79so258000521wmt.0 for ; Tue, 08 Nov 2016 10:58:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mcfb03U5y6Kvj3RxfAjyubtIycTm/Ku2RosBtYMpuBo=; b=qF9WhQa2MtlA8xpsiKdwWCZpxcyYVyQp1FSDM//tvEYonDSqBAIooL4y4y1PwVT9zH qss2M6cNhg5VpT8wycctKeHUiOmM2DGTifElPehPZkM10AVFDaX9psHTxNBXTVaVtERq k/BW1PwqmHpVDLE31yahF/grcjUiEj43f6o/rzJB27eR5+OhNGShlejaVQa7gOFJ99Hb SjbTWcR8jpLLBH35yNqMtTMAHrdGBtHZErsmzCsXOTAJZrXUjqkkkunWLGDcyLrMJ4k0 nPBAlEAgNr48GwW031HYo445vmHD55pxaeUFkHDzyYYonT2Pj8ChQE+Zzlncr+BsfLkY d5ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mcfb03U5y6Kvj3RxfAjyubtIycTm/Ku2RosBtYMpuBo=; b=Lkz6liEUgk5WFH7Q5+PYfj9xtXPMehBRceV2lzyG/hPxonQbZY91wGmmHjQkQztsWi 5sGchcxqN3AhUGK8jhlptl0UsNJx7TKqsCjdNSQJQaHBSsCgLSKZqR/vj/CyyLu4JClM COlJnrxjH+kjzi6cYTnGi3oat6+Kk+pVANmjX9I4vJQTB99CLLiRZvUOgmT17kL2221N 0YY83KH23IZCjQ3+H28kzQFc910w8Su8KWANcCspMgcsVzh2ZWr4S89k0YuFl3AQOb8m iO6+UgGQA5Ead0uOZ3AGIHfWfcTp0mGyQQIwIhlYAmm7JdOiaG11NMzEbILpAUIhzHCJ b/NQ== X-Gm-Message-State: ABUngveHMdTSGwzytmU2qZ3iQsqeVOis9gFVZ+TlYUVXFCvjy7S0ipv1iY51rpv/1PmvU3b5 X-Received: by 10.28.232.23 with SMTP id f23mr14915056wmh.125.1478631515938; Tue, 08 Nov 2016 10:58:35 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q7sm38556240wjh.9.2016.11.08.10.58.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Nov 2016 10:58:35 -0800 (PST) From: Axel Haslam To: gregkh@linuxfoundation.org, stern@rowland.harvard.edu, nsekhar@ti.com, khilman@kernel.org, david@lechnology.com, robh+dt@kernel.org Subject: [PATCH 2/3] USB: ohci: da8xx: Allow probing from DT Date: Tue, 8 Nov 2016 19:58:30 +0100 Message-Id: <20161108185831.17683-3-ahaslam@baylibre.com> X-Mailer: git-send-email 2.10.1.502.g6598894 In-Reply-To: <20161108185831.17683-1-ahaslam@baylibre.com> References: <20161108185831.17683-1-ahaslam@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161108_105857_990511_7E8A36AC X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Axel Haslam , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 83b182e..bbfe342 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -321,6 +321,13 @@ static int ohci_da8xx_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, } /*-------------------------------------------------------------------------*/ +#ifdef CONFIG_OF +static const struct of_device_id da8xx_ohci_ids[] = { + { .compatible = "ti,da830-ohci" }, + { } +}; +MODULE_DEVICE_TABLE(of, da8xx_ohci_ids); +#endif static int ohci_da8xx_probe(struct platform_device *pdev) { @@ -472,6 +479,7 @@ static struct platform_driver ohci_hcd_da8xx_driver = { #endif .driver = { .name = DRV_NAME, + .of_match_table = of_match_ptr(da8xx_ohci_ids), }, };