aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/db8500-prcmu.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-04-19 21:36:41 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-09 17:14:15 +0200
commit9fc63f670f53cf9dcdca5e523289dda35da47e63 (patch)
treea4a823c312039b5b71f583d12ffd5c648162b6c1 /drivers/mfd/db8500-prcmu.c
parentmfd: Fix of_match_node() da9052 arguments (diff)
downloadlinux-dev-9fc63f670f53cf9dcdca5e523289dda35da47e63.tar.xz
linux-dev-9fc63f670f53cf9dcdca5e523289dda35da47e63.zip
mfd: Register db8500-prcmu as a platform driver instead of only probing
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 <lee.jones@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/db8500-prcmu.c')
-rw-r--r--drivers/mfd/db8500-prcmu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index 5be32489714f..79a79ae6fc25 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -2958,7 +2958,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;
@@ -2999,11 +2999,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);