From: Chen-Yu Tsai Date: Thu, 22 May 2014 15:20:55 +0000 (+0800) Subject: pinctrl: sunxi: fix pin numbers passed to register offset helpers X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~31^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4575c699882346c0c18e93bb5173c2689965c7b;p=pandora-kernel.git pinctrl: sunxi: fix pin numbers passed to register offset helpers The pin numbers passed to sunxi_*_reg helpers to get the correct registers should be the pin offset for the PIO block, not the absolute number we use that is based on the alphanumeric labels Allwinner uses. This patch subtracts .pin_base from the pin number passed to these functions, so the driver accesses the correct registers. Signed-off-by: Chen-Yu Tsai Reviewed-by: Boris Brezillon Acked-by: Maxime Ripard Signed-off-by: Linus Walleij --- Reading git-diff-tree failed