diff options
Diffstat (limited to 'drivers/mfd/db8500-prcmu.c')
-rw-r--r-- | drivers/mfd/db8500-prcmu.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index f4adcabb2a51..4050a1e1872b 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/uaccess.h> | 28 | #include <linux/uaccess.h> |
29 | #include <linux/mfd/core.h> | 29 | #include <linux/mfd/core.h> |
30 | #include <linux/mfd/dbx500-prcmu.h> | 30 | #include <linux/mfd/dbx500-prcmu.h> |
31 | #include <linux/mfd/abx500/ab8500.h> | ||
31 | #include <linux/regulator/db8500-prcmu.h> | 32 | #include <linux/regulator/db8500-prcmu.h> |
32 | #include <linux/regulator/machine.h> | 33 | #include <linux/regulator/machine.h> |
33 | #include <asm/hardware/gic.h> | 34 | #include <asm/hardware/gic.h> |
@@ -2972,8 +2973,9 @@ static struct mfd_cell db8500_prcmu_devs[] = { | |||
2972 | */ | 2973 | */ |
2973 | static int __devinit db8500_prcmu_probe(struct platform_device *pdev) | 2974 | static int __devinit db8500_prcmu_probe(struct platform_device *pdev) |
2974 | { | 2975 | { |
2976 | struct ab8500_platform_data *ab8500_platdata = pdev->dev.platform_data; | ||
2975 | struct device_node *np = pdev->dev.of_node; | 2977 | struct device_node *np = pdev->dev.of_node; |
2976 | int irq = 0, err = 0; | 2978 | int irq = 0, err = 0, i; |
2977 | 2979 | ||
2978 | if (ux500_is_svp()) | 2980 | if (ux500_is_svp()) |
2979 | return -ENODEV; | 2981 | return -ENODEV; |
@@ -2997,6 +2999,12 @@ static int __devinit db8500_prcmu_probe(struct platform_device *pdev) | |||
2997 | goto no_irq_return; | 2999 | goto no_irq_return; |
2998 | } | 3000 | } |
2999 | 3001 | ||
3002 | for (i = 0; i < ARRAY_SIZE(db8500_prcmu_devs); i++) { | ||
3003 | if (!strcmp(db8500_prcmu_devs[i].name, "ab8500-core")) { | ||
3004 | db8500_prcmu_devs[i].platform_data = ab8500_platdata; | ||
3005 | } | ||
3006 | } | ||
3007 | |||
3000 | if (cpu_is_u8500v20_or_later()) | 3008 | if (cpu_is_u8500v20_or_later()) |
3001 | prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET); | 3009 | prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET); |
3002 | 3010 | ||