pinctrl: bcm2835: Replace BUG with BUG_ON
authorJason Wang <wangborong@cdjrlc.com>
Thu, 24 Jun 2021 06:49:13 +0000 (14:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Jul 2021 15:47:00 +0000 (17:47 +0200)
commit29d45a642d4ea8de7e89b57f856046df7c3b219f
treee7e21d3535508c794e5c3e93546711d92eff526c
parent41353ae7a17ba63118ef364896309df3e3824390
pinctrl: bcm2835: Replace BUG with BUG_ON

The if condition followed by BUG can be replaced to BUG_ON which is
more compact and formal in linux source.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210624064913.41788-1-wangborong@cdjrlc.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c