Commit e66b202eb3aba9f3cf93c2a20d8f28360dfb095f
Committed by
Tom Rini
1 parent
49b10cb492
Exists in
smarc_8mq_lf_v2020.04
and in
10 other branches
pinctrl: mediatek: fix warning
Fix the following warning when CONFIG_PINCONF=n: drivers/pinctrl/mediatek/pinctrl-mtk-common.c:35:36: warning: ‘mtk_drive’ defined but not used [-Wunused-const-variable=] static const struct mtk_drive_desc mtk_drive[] = { ^~~~~~~~~ Signed-off-by: Fabien Parent <fparent@baylibre.com>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
... | ... | @@ -14,6 +14,7 @@ |
14 | 14 | |
15 | 15 | #include "pinctrl-mtk-common.h" |
16 | 16 | |
17 | +#if CONFIG_IS_ENABLED(PINCONF) | |
17 | 18 | /** |
18 | 19 | * struct mtk_drive_desc - the structure that holds the information |
19 | 20 | * of the driving current |
... | ... | @@ -39,6 +40,7 @@ |
39 | 40 | [DRV_GRP3] = { 2, 8, 2, 2 }, |
40 | 41 | [DRV_GRP4] = { 2, 16, 2, 1 }, |
41 | 42 | }; |
43 | +#endif | |
42 | 44 | |
43 | 45 | static const char *mtk_pinctrl_dummy_name = "_dummy"; |
44 | 46 |