]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/i2c/fti2c010.c
common: Make sure arch-specific map_sysmem() is defined
[karo-tx-uboot.git] / drivers / i2c / fti2c010.c
index fb9fa353d108c48e145e567f1d25a14d0f8d9341..68d9a429129a6a5c0a69349f4bd153b45f0c969f 100644 (file)
@@ -201,7 +201,7 @@ static int fti2c010_read(struct i2c_adapter *adap,
        struct fti2c010_chip *chip = chip_list + adap->hwadapnr;
        struct fti2c010_regs *regs = chip->regs;
        int ret, pos;
-       uchar paddr[4];
+       uchar paddr[4] = { 0 };
 
        to_i2c_addr(paddr, addr, alen);
 
@@ -263,7 +263,7 @@ static int fti2c010_write(struct i2c_adapter *adap,
        struct fti2c010_chip *chip = chip_list + adap->hwadapnr;
        struct fti2c010_regs *regs = chip->regs;
        int ret, pos;
-       uchar paddr[4];
+       uchar paddr[4] = { 0 };
 
        to_i2c_addr(paddr, addr, alen);