From patchwork Mon Oct 24 16:46:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ahaslam@baylibre.com X-Patchwork-Id: 9392679 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 0C0E36077A for ; Mon, 24 Oct 2016 16:59:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECF55291B0 for ; Mon, 24 Oct 2016 16:59:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E13E2291B3; Mon, 24 Oct 2016 16:59:29 +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 CFEF1291B0 for ; Mon, 24 Oct 2016 16:59:28 +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 1byiYR-0003d1-6E; Mon, 24 Oct 2016 16:56:55 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1byiPA-0002LQ-NK for linux-arm-kernel@bombadil.infradead.org; Mon, 24 Oct 2016 16:47:20 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1byiP9-0006JW-GV for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2016 16:47:20 +0000 Received: by mail-wm0-x22a.google.com with SMTP id b80so114335010wme.1 for ; Mon, 24 Oct 2016 09:46:59 -0700 (PDT) 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=jaJ2CphRVo4y+Cb1blTJcdtRK4vPnvNAHt3Y+xqZRn4=; b=fPfbo0XTxJvpjdW5VMNUjAdI3mFB54xpd9t2OI/Hzgh9xU2eSkralCucn0xfwLI8p3 67yhNPcUN5PndInY+Jz+qZ8h2aWUgOsbvT1eZuvfKp1azFsfklA5mv9HlWq1AKXhCae8 B8ptzqcIKhTkhtxwcJ9snArltrVYm2JAYY/eOgiWAchRVfSFqFb8KJTMubcgHq+LRbwW I+D7bRe9MAURaqFP91L1noSdKl1bdBMSYBqShUFh+K2X6xsilpmv9WYjZr0ZL0+YJHIF 3g/PYQaECI8B8+Hooz7cSDrZXadZaY2WERSvRuA2EWGQ5jxE1D405SvmbyzVAL7HKP6h oc5Q== 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=jaJ2CphRVo4y+Cb1blTJcdtRK4vPnvNAHt3Y+xqZRn4=; b=EFPQx0hkze6eJfdq4fk8rth6X+bJRLipyjTpPdEcdzbuT4eOWRD8WlVxZeSSMdOm5y 4jinp1NY9fdG6u7jSq5Cz8U2HBeRHMYKhs7z51nTNdXHQYcbybDPZ1VQwrrv+GqEjfUp 6XHccZ7Ks++uwtukyDhEzZXXVOKmxlFUZhVqKfI4V6Hsx+e67v3QUN+YE27qjyp3vT8f 3tZI6JZh3L0ldcnVF230ySkmBIQ64/sc+ZBOEBcr5iynWtB4BGEcWpQlotZiEimHV+1H I+cFWcYFg6oqwH3kZGeVj6gNe2syf10nckdK8YyowUd8aIi7MTrXmoCWwsKSK05IRDlL fbGQ== X-Gm-Message-State: ABUngvd54mXs0XmJNeiYxxn5LAdyUT940DKvIpsfmv2NbS+OeG4BD2cXpRaxGQf545MMtvHR X-Received: by 10.194.60.106 with SMTP id g10mr14351237wjr.151.1477327617443; Mon, 24 Oct 2016 09:46:57 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id o62sm15710148wmg.9.2016.10.24.09.46.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 09:46:57 -0700 (PDT) From: ahaslam@baylibre.com To: gregkh@linuxfoundation.org, johan@kernel.org, robh+dt@kernel.org, nsekhar@ti.com, stern@rowland.harvard.edu, khilman@baylibre.com, sshtylyov@ru.mvista.com, david@lechnology.com, manjunath.goudar@linaro.org, broonie@kernel.org, abailon@baylibre.com Subject: [PATCH/RFT v2 16/17] USB: ohci-da8xx: Allow probing from DT Date: Mon, 24 Oct 2016 18:46:33 +0200 Message-Id: <20161024164634.4330-17-ahaslam@baylibre.com> X-Mailer: git-send-email 2.10.1.502.g6598894 In-Reply-To: <20161024164634.4330-1-ahaslam@baylibre.com> References: <20161024164634.4330-1-ahaslam@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161024_124719_670249_BB2AD1E3 X-CRM114-Status: GOOD ( 11.61 ) 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 From: Axel Haslam 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 bebc3f0..1a8db25 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -273,6 +273,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) { @@ -421,6 +428,7 @@ static int ohci_da8xx_resume(struct platform_device *dev) #endif .driver = { .name = "ohci", + .of_match_table = da8xx_ohci_ids, }, };