kernel_optimize_test/drivers/pinctrl/mediatek
Hongzhou Yang d48c2c0264 pinctrl: mediatek: Fix multiple registration issue.
Since our common driver need support main chip and PMU
at the same time, that means it will register two
pinctrl device, and the pinctrl_desc structure should
be used two times.

But pinctrl_desc use global static definition, then
the latest registered pinctrl device will overwrite
the old one's, all members in pinctrl_desc will set to
the new one's, such as name, pins and pins numbers, etc.
This is a bug.

Move pinctrl_desc into mtk_pinctrl, assign new value for
each pinctrl device to fix it.

Cc: stable@vger.kernel.org # v4.1+
Signed-off-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-08-26 14:37:44 +02:00
..
Kconfig pinctrl: mediatek: add OF dependency to MT6397 2015-05-20 09:11:23 +02:00
Makefile pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt8127 2015-05-19 11:17:45 +02:00
pinctrl-mt6397.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-mt8127.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-mt8135.c pinctrl: Remove .owner field 2015-06-04 10:12:42 +02:00
pinctrl-mt8173.c pinctrl: mediatek: Fix bug of ies/smt setting for mt8173. 2015-06-02 11:06:31 +02:00
pinctrl-mtk-common.c pinctrl: mediatek: Fix multiple registration issue. 2015-08-26 14:37:44 +02:00
pinctrl-mtk-common.h pinctrl: mediatek: Fix multiple registration issue. 2015-08-26 14:37:44 +02:00
pinctrl-mtk-mt6397.h pinctrl: mediatek: Add Pinctrl/GPIO driver for mt6397. 2015-05-19 11:16:17 +02:00
pinctrl-mtk-mt8127.h pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt8127 2015-05-19 11:17:45 +02:00
pinctrl-mtk-mt8135.h pinctrl: mediatek: Fix include directive 2015-03-18 10:58:21 +01:00
pinctrl-mtk-mt8173.h pinctrl: mediatek: mt8135/mt8173: Fix build error due to missing include file 2015-03-18 13:06:09 +01:00