aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/pxa27x.c
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-11-28 15:24:12 +0800
committerEric Miao <eric.miao@marvell.com>2008-12-02 14:42:40 +0800
commit14758220520c45755ae9de3c3073f03bd71f098a (patch)
treebf3c23e4ee120451b9fad9e6f51b715c0e5963dd /arch/arm/mach-pxa/pxa27x.c
parent994642934d99b9a4d5447d628de7c321c4fde5fe (diff)
downloadkernel_samsung_smdk4412-14758220520c45755ae9de3c3073f03bd71f098a.zip
kernel_samsung_smdk4412-14758220520c45755ae9de3c3073f03bd71f098a.tar.gz
kernel_samsung_smdk4412-14758220520c45755ae9de3c3073f03bd71f098a.tar.bz2
[ARM] pxa: register Power I2C device only when necessary
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r--arch/arm/mach-pxa/pxa27x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c
index 7c11669..7769718 100644
--- a/arch/arm/mach-pxa/pxa27x.c
+++ b/arch/arm/mach-pxa/pxa27x.c
@@ -324,7 +324,7 @@ void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info)
local_irq_disable();
PCFR |= PCFR_PI2CEN;
local_irq_enable();
- pxa27x_device_i2c_power.dev.platform_data = info;
+ pxa_register_device(&pxa27x_device_i2c_power, info);
}
static struct platform_device *devices[] __initdata = {
@@ -334,7 +334,6 @@ static struct platform_device *devices[] __initdata = {
&pxa_device_stuart,
&pxa_device_i2s,
&pxa_device_rtc,
- &pxa27x_device_i2c_power,
&pxa27x_device_ssp1,
&pxa27x_device_ssp2,
&pxa27x_device_ssp3,