Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fc63f67 authored by Lee Jones's avatar Lee Jones Committed by Samuel Ortiz
Browse files

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: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 9e69ab41
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);