From patchwork Mon Jun 11 15:25:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 9203 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7E26E23EB4 for ; Mon, 11 Jun 2012 15:25:45 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4E964A18191 for ; Mon, 11 Jun 2012 15:25:45 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so2835390yen.11 for ; Mon, 11 Jun 2012 08:25:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=4pFwtZxizVS5xXaydwDY/hmwrNZMQcYs0bmU+f4MU9Q=; b=bciTx51kplkTPvnjPbl3uJRenJUrOjjaa/dvJ8AY3Iw0wkPYabJQ294vjeTGvQXS1+ qevfuteeXlXZ16kLWFkJX8IFtoUHlUkDAh+UnD65veecmnC38yVOxCaYz44s+KYkxpZD XZkiCewE/ewo0JMFUN12Urm8Xr9Oz2OGNtU3nKsQYJu6RbfIF2Ba6EM3bwM76taYwYqn ujNJmgAVh2PKYFEfrGqRXjmmNyb75/UgFlDrnqOng/aSb8754e8oKQkMepfecptzYGQJ Q59QpERxC0QMNw1THJtopryCskI/mhvjwSWzz/owHWprgD3nVErDh6oRX3ROgYHPkyIK T9GA== Received: by 10.50.195.234 with SMTP id ih10mr6670962igc.0.1339428345034; Mon, 11 Jun 2012 08:25:45 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp115744ibb; Mon, 11 Jun 2012 08:25:44 -0700 (PDT) Received: by 10.14.99.200 with SMTP id x48mr3072264eef.77.1339428344222; Mon, 11 Jun 2012 08:25:44 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id h46si11093593wed.105.2012.06.11.08.25.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 08:25:44 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-we0-f178.google.com with SMTP id e53so2963103wer.37 for ; Mon, 11 Jun 2012 08:25:43 -0700 (PDT) Received: by 10.180.95.100 with SMTP id dj4mr21747860wib.17.1339428343374; Mon, 11 Jun 2012 08:25:43 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id ch9sm39413606wib.8.2012.06.11.08.25.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 08:25:42 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linus.walleij@stericsson.com, arnd@arndb.de, grant.likely@secretlab.ca, Lee Jones , Felipe Balbi , linux-usb@vger.kernel.org Subject: [PATCH 11/14] usb: otg: Enable probing of the ab8500 during a Device Tree boot Date: Mon, 11 Jun 2012 16:25:04 +0100 Message-Id: <1339428307-3850-12-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1339428307-3850-1-git-send-email-lee.jones@linaro.org> References: <1339428307-3850-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlHIgUTcKfTdU/uHxogIuLijqZs4CgTyCf15U0x8LmmLJqH+lO6O6J7DDT9IjaQ4/ff/Yta Without this patch, if Device Tree is enabled the AB8500 USB OTG driver wouldn't get probed at all, as there is no reference to it from platform code. This patch ensures the driver is probed during normal DT start-up. Cc: Felipe Balbi Cc: linux-usb@vger.kernel.org Signed-off-by: Lee Jones --- drivers/usb/otg/ab8500-usb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/otg/ab8500-usb.c b/drivers/usb/otg/ab8500-usb.c index a84af67..9799ac6 100644 --- a/drivers/usb/otg/ab8500-usb.c +++ b/drivers/usb/otg/ab8500-usb.c @@ -569,12 +569,18 @@ static int __devexit ab8500_usb_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ab8500_usb_match[] = { + { .compatible = "stericsson,ab8500-usb", }, + {}, +}; + static struct platform_driver ab8500_usb_driver = { .probe = ab8500_usb_probe, .remove = __devexit_p(ab8500_usb_remove), .driver = { .name = "ab8500-usb", .owner = THIS_MODULE, + .of_match_table = ab8500_usb_match, }, };