aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c6410/mach-om-gta03.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c6410/mach-om-gta03.c')
-rw-r--r--arch/arm/mach-s3c6410/mach-om-gta03.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-gta03.c b/arch/arm/mach-s3c6410/mach-om-gta03.c
index b5c861e7fa6..01a01b44baa 100644
--- a/arch/arm/mach-s3c6410/mach-om-gta03.c
+++ b/arch/arm/mach-s3c6410/mach-om-gta03.c
@@ -69,7 +69,7 @@
#include <linux/mfd/pcf50633/mbc.h>
#include <linux/mfd/pcf50633/adc.h>
#include <linux/mfd/pcf50633/gpio.h>
-#include <linux/mfd/pcf50633/led.h>
+#include <linux/mfd/pcf50633/pmic.h>
#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
@@ -395,6 +395,9 @@ static void om_gta03_pmu_event_callback(struct pcf50633 *pcf, int irq)
static void om_gta03_pcf50633_attach_child_devices(struct pcf50633 *pcf);
static void om_gta03_pmu_regulator_registered(struct pcf50633 *pcf, int id);
+/* Global reference */
+struct pcf50633 *om_gta03_pcf;
+
struct pcf50633_platform_data om_gta03_pcf_pdata = {
.resumers = {
@@ -578,7 +581,7 @@ static void om_gta03_pmu_regulator_registered(struct pcf50633 *pcf, int id)
{
struct platform_device *regulator, *pdev;
- regulator = pcf->pmic.pdev[id];
+ regulator = pcf->regulator_pdev[id];
switch(id) {
case PCF50633_REGULATOR_LDO4:
@@ -614,6 +617,8 @@ static void om_gta03_pcf50633_attach_child_devices(struct pcf50633 *pcf)
{
int n;
+ om_gta03_pcf = pcf;
+
for (n = 0; n < ARRAY_SIZE(om_gta03_devices_pmu_children); n++)
om_gta03_devices_pmu_children[n]->dev.parent = pcf->dev;