From patchwork Thu Apr 19 20:36:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7965 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 B511423E20 for ; Thu, 19 Apr 2012 20:37:23 +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 76522A180E6 for ; Thu, 19 Apr 2012 20:37:23 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so16953504iag.11 for ; Thu, 19 Apr 2012 13:37:23 -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=IPf3bR0K0oyNQlNwugYHvs5rbQ0k+0e8BlLXiIRfIqc=; b=gJZGjEaO5FR/+TzWwYCLMYmTsVcHAzzktvQ4Ws9zjvs1xzg7g66BOLE2QRux2QqeZa g27fAhJ4cPNeKaPKY7hn4Bg7e/ORCNDdrMmo9p94H6UHfdicKr3e6cWXkr30JBeUw/Jg L/wqD2iUT8ndBm+kSQcZrCck8A0aEVHB7r0ht3v3ma4KVXSjDFilqKl+0QyA3NC2456n jzg/rCR/uyqzMSODqkJxP/7LR54BjgpgSDzRBym0gdJoP5ymbQWgO9aXAfKf3ui0F3dH hVy4Nty/frCTW0hdVXEuFEwWWcQ0qE6o5glGcp5unWcbS08EwKnD8942L7WdLQe6I8xN kzyw== Received: by 10.43.49.201 with SMTP id vb9mr3116884icb.35.1334867843182; Thu, 19 Apr 2012 13:37:23 -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 x6csp317257ibt; Thu, 19 Apr 2012 13:37:22 -0700 (PDT) Received: by 10.180.80.70 with SMTP id p6mr1539083wix.21.1334867841939; Thu, 19 Apr 2012 13:37:21 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id l32si3780646weq.32.2012.04.19.13.37.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Apr 2012 13:37:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 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-f172.google.com with SMTP id hj6so5508wib.13 for ; Thu, 19 Apr 2012 13:37:21 -0700 (PDT) Received: by 10.180.104.65 with SMTP id gc1mr8592155wib.13.1334867841167; Thu, 19 Apr 2012 13:37:21 -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 h8sm345540wix.4.2012.04.19.13.37.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Apr 2012 13:37:20 -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, linux@arm.linux.org.uk Cc: Lee Jones , Samuel Ortiz Subject: [PATCH 12/15] mfd/db8500-prcmu: Register as a platform driver instead of only probing Date: Thu, 19 Apr 2012 21:36:41 +0100 Message-Id: <1334867804-31942-13-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1334867804-31942-1-git-send-email-lee.jones@linaro.org> References: <1334867804-31942-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQmCMLI0Szt1WX2nXDpYbkjJzMnFfQhb7PWBV2kmFS3vTC5nxEX7LFvTv3/ACpZW0n6aryN7 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. CC: Samuel Ortiz 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);