This is a general cleanup patch
[coreboot.git] / src / southbridge / intel / i82801gx / i82801gx_usb_ehci.c
index 9edee4faa82286153b67716b1250a92a119604f5..3d61cae9b69c62b901b0daa102a6416f3444d0cb 100644 (file)
@@ -53,8 +53,8 @@ static void usb_ehci_init(struct device *dev)
        /* Clear any pending port changes */
        res = find_resource(dev, 0x10);
        base = res->base;
-       reg32 = read32((u8 *)base + 0x24) | (1 << 2);
-       write32((u8 *)base + 0x24, reg32);
+       reg32 = read32(base + 0x24) | (1 << 2);
+       write32(base + 0x24, reg32);
 
        /* workaround */
        reg8 = pci_read_config8(dev, 0x84);