Skip to content
Commit 70a2b422 authored by Weijie Gao's avatar Weijie Gao Committed by Tom Rini
Browse files

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: default avatarWeijie Gao <weijie.gao@mediatek.com>
parent e254d2c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment