diff options
author | Balaji Rao <balajirrao@gmail.com> | 2008-11-20 19:46:49 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-20 19:46:49 +0000 |
commit | fa62cc7d002b4422d44f453a08d9cd7c1f192600 (patch) | |
tree | c08fa854a795279c98e2b4d7f5fa484975345295 /arch/arm/plat-s3c24xx/neo1973_pm_host.c | |
parent | f3e9a706b03391c57b132b7a31f1f4cea4376bc2 (diff) |
eliminate_pcf50633_global.patch
Eliminate pcf50633_global and hence make pcf50633.c work with
multiple devices. pcf50633 is no longer a paltform device, but
an i2c device.
Diffstat (limited to 'arch/arm/plat-s3c24xx/neo1973_pm_host.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/neo1973_pm_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_host.c b/arch/arm/plat-s3c24xx/neo1973_pm_host.c index bb25acdb7d2..8ab589b3ad8 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_host.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_host.c @@ -27,7 +27,7 @@ static ssize_t pm_host_read(struct device *dev, struct device_attribute *attr, char *buf) { return sprintf(buf, "%d\n", - pcf50633_gpio_get(pcf50633_global, PCF50633_GPO)); + pcf50633_gpio_get(gta02_pcf_pdata.pcf, PCF50633_GPO)); } static ssize_t pm_host_write(struct device *dev, struct device_attribute *attr, @@ -35,7 +35,7 @@ static ssize_t pm_host_write(struct device *dev, struct device_attribute *attr, { unsigned long on = simple_strtoul(buf, NULL, 10); - pcf50633_gpio_set(pcf50633_global, PCF50633_GPO, on); + pcf50633_gpio_set(gta02_pcf_pdata.pcf, PCF50633_GPO, on); return count; } |