The patch titled mfd: fix asic3 config array initialisation has been added to the -mm tree. Its filename is asic3-new-gpio-configuration-code-fix-asic3-config-array-initialisation.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mfd: fix asic3 config array initialisation From: Philipp Zabel <philipp.zabel@xxxxxxxxx> Our memset length was incorrect. Tested-by: Philipp Zabel <philipp.zabel@xxxxxxxxx> Signed-off-by: Samuel Ortiz <sameo@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/mfd/asic3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN drivers/mfd/asic3.c~asic3-new-gpio-configuration-code-fix-asic3-config-array-initialisation drivers/mfd/asic3.c --- a/drivers/mfd/asic3.c~asic3-new-gpio-configuration-code-fix-asic3-config-array-initialisation +++ a/drivers/mfd/asic3.c @@ -477,9 +477,9 @@ static int asic3_gpio_probe(struct platf u16 dir_reg[ASIC3_NUM_GPIO_BANKS]; int i; - memset(alt_reg, 0, ASIC3_NUM_GPIO_BANKS); - memset(out_reg, 0, ASIC3_NUM_GPIO_BANKS); - memset(dir_reg, 0, ASIC3_NUM_GPIO_BANKS); + memzero(alt_reg, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); + memzero(out_reg, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); + memzero(dir_reg, ASIC3_NUM_GPIO_BANKS * sizeof(u16)); /* Enable all GPIOs */ asic3_write_register(asic, ASIC3_GPIO_OFFSET(A, Mask), 0xffff); _ Patches currently in -mm which might be from philipp.zabel@xxxxxxxxx are asic3-new-gpio-configuration-code-fix-asic3-config-array-initialisation.patch mfd-move-asic3-probe-functions-into-__init-section.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html