commit | 70a2b4220e55105aa6c970589a6a96d2714751f4 | [log] [tgz] |
---|---|---|
author | Weijie Gao <weijie.gao@mediatek.com> | Fri Mar 05 10:22:26 2021 +0800 |
committer | Tom Rini <trini@konsulko.com> | Sat Mar 20 16:24:27 2021 -0400 |
tree | 559fc6b73b19229f1c5e1868fba2accb23f16400 | |
parent | e254d2c0a44183b9ec1da81578a7bb7d548bdf60 [diff] |
pinctrl: mediatek: do not probe gpio driver if not enabled The mtk pinctrl driver is a combination driver with support for both pinctrl and gpio. When this driver is used in SPL, gpio support may not be enabled, and this will result in a compilation error. To fix this, macros are added to make sure gpio related code will only be compiled when gpio support is enabled. Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>