From patchwork Thu May 17 13:45:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8754 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 B2CB423E23 for ; Thu, 17 May 2012 13:46:58 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 7EAB1A18B5C for ; Thu, 17 May 2012 13:46:58 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so2138099yhp.11 for ; Thu, 17 May 2012 06:46:58 -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=xxa3jdac3HpreC2KJMvxHhr+z7BZY2Fp6NefVqjrmoE=; b=SYYutDUT47vMzEj/JCk6/MaY++vXVD/g/jNis5npWPNqtRtJ7V7HlfZDhKajDE743K +ong3wZlCxNtURC8CkLvnhX2h/Ie9blSyTVFZfqaxY1UsKIG/wXaHIgWd/RVP2etFa4f bt26mS67gzPAUtR7eVeYaDTZmkkg+A9khRZAPUijH1sL5ICJqs/oI8pUmF8EgkUUghiM gY99nyYIxUyTFpa+eCEmlQc/jzRmoAM2ZwBdqpOjvKNH/s1bTTEcJu6haSJ3eBXC5xY3 oUPmSiekUpXQ+pSxhO+sw1xQpK2PG59DcF6J6s3lpFVIwnzHJzUC+yNJiB9oOOQu8yi/ Fxdg== Received: by 10.42.89.72 with SMTP id f8mr4586970icm.33.1337262418025; Thu, 17 May 2012 06:46:58 -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.35.72 with SMTP id o8csp29066ibd; Thu, 17 May 2012 06:46:57 -0700 (PDT) Received: by 10.216.139.129 with SMTP id c1mr4774215wej.48.1337262416569; Thu, 17 May 2012 06:46:56 -0700 (PDT) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx.google.com with ESMTPS id d14si7378891wec.147.2012.05.17.06.46.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 06:46:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.170 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.170; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.170 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-wi0-f170.google.com with SMTP id hm6so4413474wib.1 for ; Thu, 17 May 2012 06:46:56 -0700 (PDT) Received: by 10.180.102.101 with SMTP id fn5mr18533139wib.6.1337262416088; Thu, 17 May 2012 06:46:56 -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 h8sm21166277wix.4.2012.05.17.06.46.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 06:46:55 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, broonie@opensource.wolfsonmicro.com, sameo@linux.intel.com Cc: Lee Jones Subject: [PATCH 17/18] mfd: Enable ab8500-gpadc driver for Device Tree Date: Thu, 17 May 2012 14:45:22 +0100 Message-Id: <1337262323-27692-18-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1337262323-27692-1-git-send-email-lee.jones@linaro.org> References: <1337262323-27692-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkOwDXnxiA9U1q4+Bo6pxPAZFUJ8yRk8HzqKslfioP15qzCZ5KbUrWBUkOT9dGSN4Mcnj+4 This patch will allow the ab8500-gpadc driver to be probed during Device Tree enabled boot. Signed-off-by: Lee Jones --- drivers/mfd/ab8500-gpadc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c index c1656ab..b86fd8e 100644 --- a/drivers/mfd/ab8500-gpadc.c +++ b/drivers/mfd/ab8500-gpadc.c @@ -648,12 +648,18 @@ static int __devexit ab8500_gpadc_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ab8500_gpadc_match[] = { + { .compatible = "stericsson,ab8500-gpadc", }, + {} +}; + static struct platform_driver ab8500_gpadc_driver = { .probe = ab8500_gpadc_probe, .remove = __devexit_p(ab8500_gpadc_remove), .driver = { .name = "ab8500-gpadc", .owner = THIS_MODULE, + .of_match_table = ab8500_gpadc_match, }, };