summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-12-11 01:05:06 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-12-16 01:22:38 +0100
commit7f07675c117aac08c403ee02d4a865f76a0ce55a (patch)
treeb8515e84032d9360117f2831257b5e61abb82475 /drivers/pinctrl
parentpinctrl: sunxi: Deal with per-bank regulators (diff)
downloadlinux-7f07675c117aac08c403ee02d4a865f76a0ce55a.tar.xz
linux-7f07675c117aac08c403ee02d4a865f76a0ce55a.zip
pinctrl: aspeed: Wrap -Woverride-init with cc-option
Clang does not support this option: warning: unknown warning option '-Woverride-init'; did you mean '-Woverride-module'? [-Wunknown-warning-option] 1 warning generated. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: Andrew Jeffery <andrew@aj.id.au> Acked-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/aspeed/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/aspeed/Makefile b/drivers/pinctrl/aspeed/Makefile
index 191ed0fc1804..790b406aae19 100644
--- a/drivers/pinctrl/aspeed/Makefile
+++ b/drivers/pinctrl/aspeed/Makefile
@@ -1,6 +1,6 @@
# Aspeed pinctrl support
-ccflags-y += -Woverride-init
+ccflags-y += $(call cc-option,-Woverride-init)
obj-$(CONFIG_PINCTRL_ASPEED) += pinctrl-aspeed.o
obj-$(CONFIG_PINCTRL_ASPEED_G4) += pinctrl-aspeed-g4.o
obj-$(CONFIG_PINCTRL_ASPEED_G5) += pinctrl-aspeed-g5.o