Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939360AbcKWSHb (ORCPT ); Wed, 23 Nov 2016 13:07:31 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36284 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964931AbcKWSHA (ORCPT ); Wed, 23 Nov 2016 13:07:00 -0500 From: Axel Haslam To: gregkh@linuxfoundation.org, nsekhar@ti.com, khilman@baylibre.com, david@lechnology.com, ptitiano@baylibre.com Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Axel Haslam Subject: [PATCHv7 5/5] USB: ohci: da8xx: Allow probing from DT Date: Wed, 23 Nov 2016 19:06:49 +0100 Message-Id: <20161123180649.6438-6-ahaslam@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161123180649.6438-1-ahaslam@baylibre.com> References: <20161123180649.6438-1-ahaslam@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 36 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 07366ae..1818206 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -394,6 +394,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) { @@ -546,6 +553,7 @@ static struct platform_driver ohci_hcd_da8xx_driver = { #endif .driver = { .name = DRV_NAME, + .of_match_table = of_match_ptr(da8xx_ohci_ids), }, }; -- 2.9.3