-
由 DENG Qingfang 提交于
The new GPIO support may be optional at runtime, but it requires building against gpiolib: ERROR: modpost: "gpiochip_get_data" [drivers/net/dsa/mt7530.ko] undefined! ERROR: modpost: "devm_gpiochip_add_data_with_key" [drivers/net/dsa/mt7530.ko] undefined! Add #ifdef to exclude GPIO support if GPIOLIB is not enabled. Fixes: 429a0ede ("net: dsa: mt7530: MT7530 optional GPIO support") Reported-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NDENG Qingfang <dqfext@gmail.com> Link: https://lore.kernel.org/r/20210226063226.8474-1-dqfext@gmail.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
63c75c05