From: Stefan Agner Date: Fri, 6 Feb 2015 16:30:56 +0000 (+0100) Subject: pinctrl: imx: do not implicitly set pin regs to -1 X-Git-Tag: omap-for-v4.2/o2_dc~138^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4691dd0148e082097300239d4143311efc23f6ca;p=pandora-kernel.git pinctrl: imx: do not implicitly set pin regs to -1 Commit 3dac1918a491 ("pinctrl: imx: detect uninitialized pins") needs the values in struct imx_pin_reg to be -1. This has been done in a rather unorthodox way by setting the memory to 0xff using memset... Use a proper for loop to initialize the whole array with -1. Signed-off-by: Stefan Agner Acked-by: Uwe Kleine-König Acked-by: Shawn Guo Signed-off-by: Linus Walleij --- Reading git-diff-tree failed