]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
PROTECT_KEY register is in the PM_MASTER module not in the PM_RECEIVER module
authorPeter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Wed, 16 Jul 2008 16:53:25 +0000 (19:53 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 4 Aug 2008 07:41:53 +0000 (10:41 +0300)
This patch fixes a write to the wrong address in the triton2 chip.

Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030-usb.c

index ab335cae665f42a5a8d360a255645c052e4576c3..20858b5bf784f31f6af7bf116968bd6c83207869 100644 (file)
@@ -586,7 +586,7 @@ static void twl4030_usb_ldo_init(struct twl4030_usb *twl)
        twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER, 0, VUSB1V8_TYPE);
 
        /* disable access to power configuration registers */
-       twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER, 0, PROTECT_KEY);
+       twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, 0, PROTECT_KEY);
 }
 
 static irqreturn_t twl4030_usb_irq(int irq, void *_twl)