From patchwork Wed May 15 12:03:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 16961 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9484D2396C for ; Wed, 15 May 2013 12:05:30 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id gd11sf2296641vcb.1 for ; Wed, 15 May 2013 05:04:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=jtSQlOc+yoK1FNLJ9x8F9c/diBsrPCg4LqjSQ/JNc8M=; b=F/X6sELDVjPHXyxL8CBxp/9841H3PCxLPm+93rTdqXHDnXloeq8LapTyUlTbC42EWy 0S38l1a1+25wgbTcroYcIevwk+WdWt5RTVQF2JtE8A15PzZcabqCyzBKxgE2F3QsLzmK RcLOXscuExxLIkZzXMYWGJ+y2oP7lVB7/danEB5ZsomjCkbvVfJ2IFv+5GZiclVslhtS 8Kt5j8yuEN41+VNUeKu2YoT1BhsMTt7jYn2NA6c41spmpgilRHEM62UnfMttz9UQGc5q n3XsF+a/E4giXVfRLh6Sl3St+w9YctRLKAtgXmzu+sLJ+Zcnrew5gCMfZWrGZ81qsnD4 RNaA== X-Received: by 10.224.217.195 with SMTP id hn3mr23256432qab.5.1368619493767; Wed, 15 May 2013 05:04:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.129 with SMTP id ku1ls658687qeb.49.gmail; Wed, 15 May 2013 05:04:53 -0700 (PDT) X-Received: by 10.52.111.202 with SMTP id ik10mr20819878vdb.41.1368619493650; Wed, 15 May 2013 05:04:53 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id gr7si1234814vdc.90.2013.05.15.05.04.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 May 2013 05:04:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hv10so1725599vcb.34 for ; Wed, 15 May 2013 05:04:53 -0700 (PDT) X-Received: by 10.52.36.115 with SMTP id p19mr3602115vdj.8.1368619493432; Wed, 15 May 2013 05:04:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.217.15 with SMTP id hk15csp16096vcb; Wed, 15 May 2013 05:04:52 -0700 (PDT) X-Received: by 10.180.24.69 with SMTP id s5mr14093076wif.34.1368619492386; Wed, 15 May 2013 05:04:52 -0700 (PDT) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [2a00:1450:400c:c05::231]) by mx.google.com with ESMTPS id hm3si651047wjb.220.2013.05.15.05.04.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 May 2013 05:04:52 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::231 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=2a00:1450:400c:c05::231; Received: by mail-wi0-f177.google.com with SMTP id hr14so1527610wib.16 for ; Wed, 15 May 2013 05:04:52 -0700 (PDT) X-Received: by 10.180.108.3 with SMTP id hg3mr14145043wib.17.1368619491980; Wed, 15 May 2013 05:04:51 -0700 (PDT) Received: from localhost ([2a01:2003:1:1025:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPSA id x13sm3731942wib.3.2013.05.15.05.04.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 15 May 2013 05:04:50 -0700 (PDT) From: Fabio Baltieri To: Felipe Balbi Cc: Linus Walleij , Lee Jones , Praveena Nadahally , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Fabio Baltieri Subject: [PATCH 06/10] usb: phy: ab8500-usb: add platform_device_id table Date: Wed, 15 May 2013 14:03:29 +0200 Message-Id: <1368619413-24647-7-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.2 In-Reply-To: <1368619413-24647-1-git-send-email-fabio.baltieri@linaro.org> References: <1368619413-24647-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQn2xffE1/rtFlE9+Wvf+v79ZBkRwcISvXNX1t4RHNGthmOJXsKiWAgEBQ6MKCGaaUF64t/8 X-Original-Sender: fabio.baltieri@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add an initial platform_device_id table to the ab8500-usb driver to allow probing additional variants of the ab8500 family chips. Acked-by: Linus Walleij Acked-by: Maxime Coquelin Signed-off-by: Fabio Baltieri --- drivers/usb/phy/phy-ab8500-usb.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-ab8500-usb.c b/drivers/usb/phy/phy-ab8500-usb.c index d105cce..2e8db60 100644 --- a/drivers/usb/phy/phy-ab8500-usb.c +++ b/drivers/usb/phy/phy-ab8500-usb.c @@ -945,11 +945,18 @@ static int ab8500_usb_remove(struct platform_device *pdev) return 0; } +static struct platform_device_id ab8500_usb_devtype[] = { + { .name = "ab8500-usb", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(platform, ab8500_usb_devtype); + static struct platform_driver ab8500_usb_driver = { .probe = ab8500_usb_probe, .remove = ab8500_usb_remove, + .id_table = ab8500_usb_devtype, .driver = { - .name = "ab8500-usb", + .name = "abx5x0-usb", .owner = THIS_MODULE, }, }; @@ -966,7 +973,6 @@ static void __exit ab8500_usb_exit(void) } module_exit(ab8500_usb_exit); -MODULE_ALIAS("platform:ab8500_usb"); MODULE_AUTHOR("ST-Ericsson AB"); MODULE_DESCRIPTION("AB8500 usb transceiver driver"); MODULE_LICENSE("GPL");