From patchwork Fri Nov 25 14:47:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 9447685 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 730DA60779 for ; Fri, 25 Nov 2016 14:49:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65DC827F7F for ; Fri, 25 Nov 2016 14:49:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A06827EED; Fri, 25 Nov 2016 14:49:28 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC91427F7F for ; Fri, 25 Nov 2016 14:49:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932243AbcKYOsb (ORCPT ); Fri, 25 Nov 2016 09:48:31 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:35588 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754743AbcKYOsL (ORCPT ); Fri, 25 Nov 2016 09:48:11 -0500 Received: by mail-qt0-f195.google.com with SMTP id m48so4211916qta.2 for ; Fri, 25 Nov 2016 06:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wDEay3ayAMta5G1/PT4zsDYE6Lnc36AMZpIsJVXKRK4=; b=nDO3K0MiXvjXHZY/C4HdAtzWT+oy5BfSutH5nelJ7YIIsLvtZZZp4Pox6f1ukRWyYh BGckg+M3RtUbEu+8QOQfFAfxbT/Kwx0Ln5+znbB/p7FoQXXlQ01KDbkr6gA2mi0KVEET 0EDxPb0Z1MCFu7ZFaTYTLS3CMUy+3fQusM5axCz26Mo/UnS6leDs0K5t3Q0shBLNwJx7 KxtHdxcDCkYSY2rcWMaJ/xGH14MhlsG47i6spRQ5luEUiown5UC5ilAi0lRPkua09418 bnLE+oxQ+sUfccUJrSsbNbyEtpLoEH9ILGeA29z8Op672yI0h1rfcOC5O+NAUAqKPRiC 5+Vw== 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=wDEay3ayAMta5G1/PT4zsDYE6Lnc36AMZpIsJVXKRK4=; b=JZ/sb3CHNVQ8Yhkp9la0sNsAkc+9+Unjbj6I6lbuk2I2LzswyrFiDsesCeA2Sx76nh 4VavTmN6mgy6VL9bDfcejit3N8vC9DcIMXN7cfIbBlu8qrxbwJqQQi239+V6p5w16EWy hdcgytuxcrVGeOCdxGqk9udgtMpUGrFN1iX1Pr/kV04mdOTXRgMwBOj8LCJs7kXIIkn3 0Z7nq+2xDV61bmLi1QM0PgpxDezgA4YtyVjwJarbymSzreJONHc0FBAYA27jxNKr5/wN ib+ptFmC2IUXtyw+CXtrZ0tpByWBrCNIRfTFqCxZX1Bku5VRNH9KgvtW1rELBAdO/Lgy 2oSw== X-Gm-Message-State: AKaTC00KguecD9sduvM/PnBYtoQlRX+2nmrQ1Rtt/VMQUy+VagyJwa63/032+lvfQ7Qgyg== X-Received: by 10.200.48.100 with SMTP id g33mr6977457qte.249.1480085288625; Fri, 25 Nov 2016 06:48:08 -0800 (PST) Received: from localhost.localdomain ([177.32.224.184]) by smtp.gmail.com with ESMTPSA id f36sm21545865qkf.43.2016.11.25.06.48.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Nov 2016 06:48:08 -0800 (PST) From: Sergio Prado To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com, stern@rowland.harvard.edu, kgene@kernel.org, krzk@kernel.org, javier@osg.samsung.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Sergio Prado Subject: [PATCH 2/2] usb: ohci: s3c2410: allow probing from device tree Date: Fri, 25 Nov 2016 12:47:29 -0200 Message-Id: <1480085249-25014-3-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480085249-25014-1-git-send-email-sergio.prado@e-labworks.com> References: <1480085249-25014-1-git-send-email-sergio.prado@e-labworks.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allows configuring Samsung's s3c2410 USB OHCI controller using a devicetree. Signed-off-by: Sergio Prado Acked-by: Krzysztof Kozlowski --- drivers/usb/host/ohci-s3c2410.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c index 7a1919ca543a..d8e03a801f2e 100644 --- a/drivers/usb/host/ohci-s3c2410.c +++ b/drivers/usb/host/ohci-s3c2410.c @@ -457,6 +457,13 @@ static int ohci_hcd_s3c2410_drv_resume(struct device *dev) .resume = ohci_hcd_s3c2410_drv_resume, }; +static const struct of_device_id ohci_hcd_s3c2410_dt_ids[] = { + { .compatible = "samsung,s3c2410-ohci" }, + { /* sentinel */ } +}; + +MODULE_DEVICE_TABLE(of, ohci_hcd_s3c2410_dt_ids); + static struct platform_driver ohci_hcd_s3c2410_driver = { .probe = ohci_hcd_s3c2410_drv_probe, .remove = ohci_hcd_s3c2410_drv_remove, @@ -464,6 +471,7 @@ static int ohci_hcd_s3c2410_drv_resume(struct device *dev) .driver = { .name = "s3c2410-ohci", .pm = &ohci_hcd_s3c2410_pm_ops, + .of_match_table = ohci_hcd_s3c2410_dt_ids, }, };