Skip to content

Commit 047cd9a

Browse files
rddunlaplinusw
authored andcommitted
pinctrl: mediatek: fix build for tristate changes
Export mtk_is_virt_gpio() for the case when CONFIG_PINCTRL_MTK=y CONFIG_PINCTRL_MTK_V2=y CONFIG_PINCTRL_MTK_MOORE=y CONFIG_PINCTRL_MTK_PARIS=m to fix this build error: ERROR: modpost: "mtk_is_virt_gpio" [drivers/pinctrl/mediatek/pinctrl-paris.ko] undefined! Signed-off-by: Randy Dunlap <[email protected]> Cc: Sean Wang <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 85745c8 commit 047cd9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ bool mtk_is_virt_gpio(struct mtk_pinctrl *hw, unsigned int gpio_n)
264264

265265
return virt_gpio;
266266
}
267+
EXPORT_SYMBOL_GPL(mtk_is_virt_gpio);
267268

268269
static int mtk_xt_get_gpio_n(void *data, unsigned long eint_n,
269270
unsigned int *gpio_n,

0 commit comments

Comments
 (0)