diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2011-08-11 11:20:08 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 10:59:03 +0200 |
commit | fd0d9528963b438be371ee615acfe1dfdaf97c0a (patch) | |
tree | 184a94d5312b1b48056861b4a242b0ea700403d1 /drivers/mfd | |
parent | f77ac52195813c43efd13d8fcac66fdbc091459f (diff) |
mfd/db5500-prcmu: convert to platform device
This converts the DB5500 PRCMU driver to become a platform
device just like the DB8500 PRCMU driver.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/db5500-prcmu.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/mfd/db5500-prcmu.c b/drivers/mfd/db5500-prcmu.c index 2762cfa23a9..5550ac9fd9e 100644 --- a/drivers/mfd/db5500-prcmu.c +++ b/drivers/mfd/db5500-prcmu.c @@ -19,6 +19,7 @@ #include <linux/irq.h> #include <linux/jiffies.h> #include <linux/bitops.h> +#include <linux/platform_device.h> #include <linux/interrupt.h> #include <linux/mfd/dbx500-prcmu.h> #include <mach/hardware.h> @@ -894,7 +895,7 @@ void __init db5500_prcmu_early_init(void) * prcmu_fw_init - arch init call for the Linux PRCMU fw init logic * */ -int __init db5500_prcmu_init(void) +static int __init db5500_prcmu_probe(struct platform_device *pdev) { int err = 0; @@ -917,4 +918,16 @@ no_irq_return: } +static struct platform_driver db5500_prcmu_driver = { + .driver = { + .name = "db5500-prcmu", + .owner = THIS_MODULE, + }, +}; + +static int __init db5500_prcmu_init(void) +{ + return platform_driver_probe(&db5500_prcmu_driver, db5500_prcmu_probe); +} + arch_initcall(db5500_prcmu_init); |