From patchwork Tue Apr 17 10:44: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: 7899 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 2A1CC23E00 for ; Tue, 17 Apr 2012 10:45:14 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id E60BDA181C2 for ; Tue, 17 Apr 2012 10:45:13 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so12004590iag.11 for ; Tue, 17 Apr 2012 03:45:13 -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=7uuHglF8NHHsuBm2/MYmGBLpbu97cXGMFp+/rd5ZbrE=; b=HwU3aICyjfK6F/TkWBpqX05bR4tWEPXRQ56hs17DRH0PgGCiS9Ghc2V3wnADdUnOp2 VBpF5C6KUFf5e+wcM2VKzkgnr/hQtVbQsL3Y1zy25XTgUU302HOGEueIPi7chsCHTNm9 CqpSRiTmvxHDAWL/OnWH4cgjR7i3hwZRuaazH8wu+4M/yJSygs6b++YLd/ekRjUY6yqE 0e40aOqBLmV5vVbyBc6m+uUsRKVfCYNjsStYTGQx06TqR1LOfdQLH6NIxFnoPvEsznl9 f4cJooqDDzmYQY/zwrAJ3ZzEGCggh+NPqfy4HDvonSNVuec3E7SqBGA7a7ZDwCvswo5V rg6g== Received: by 10.50.193.199 with SMTP id hq7mr8616666igc.49.1334659513730; Tue, 17 Apr 2012 03:45:13 -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.137.198 with SMTP id x6csp138722ibt; Tue, 17 Apr 2012 03:45:13 -0700 (PDT) Received: by 10.180.83.198 with SMTP id s6mr27196646wiy.8.1334659512616; Tue, 17 Apr 2012 03:45:12 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id y43si21417417weq.132.2012.04.17.03.45.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Apr 2012 03:45:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.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-wi0-f178.google.com with SMTP id hq7so368382wib.13 for ; Tue, 17 Apr 2012 03:45:12 -0700 (PDT) Received: by 10.180.104.137 with SMTP id ge9mr27045929wib.20.1334659512157; Tue, 17 Apr 2012 03:45:12 -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 fn2sm42069492wib.0.2012.04.17.03.45.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Apr 2012 03:45:11 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, linux@arm.linux.org.uk, Lee Jones Subject: [PATCH 12/16] mfd/db8500-prcmu: Register as a platform driver instead of only probing Date: Tue, 17 Apr 2012 11:44:04 +0100 Message-Id: <1334659448-11521-13-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1334659448-11521-1-git-send-email-lee.jones@linaro.org> References: <1334659448-11521-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQnUVovIywZr8S//UDnMaBECgRcq2APvqIbZfWTGdg8IHG8S3i5a3yNj9Tu9PJQIXz0B2I4w Pass the probe function as part of the platform_driver struct and register using the more common platform_driver_register call. In subsequent patches we'll also add DT support into the struct. Signed-off-by: Lee Jones --- drivers/mfd/db8500-prcmu.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index ebc1e86..839e70b 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -2957,7 +2957,7 @@ static struct mfd_cell db8500_prcmu_devs[] = { * prcmu_fw_init - arch init call for the Linux PRCMU fw init logic * */ -static int __init db8500_prcmu_probe(struct platform_device *pdev) +static int __devinit db8500_prcmu_probe(struct platform_device *pdev) { int err = 0; @@ -2998,11 +2998,12 @@ static struct platform_driver db8500_prcmu_driver = { .name = "db8500-prcmu", .owner = THIS_MODULE, }, + .probe = db8500_prcmu_probe, }; static int __init db8500_prcmu_init(void) { - return platform_driver_probe(&db8500_prcmu_driver, db8500_prcmu_probe); + return platform_driver_register(&db8500_prcmu_driver); } arch_initcall(db8500_prcmu_init);