From fd0d9528963b438be371ee615acfe1dfdaf97c0a Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Thu, 11 Aug 2011 11:20:08 +0200 Subject: 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 --- drivers/mfd/db5500-prcmu.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'drivers') 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 #include #include +#include #include #include #include @@ -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); -- cgit v1.2.3