pinctrl: baytrail: Do not call WARN_ON for a firmware bug
authorHans de Goede <hdegoede@redhat.com>
Wed, 12 Jul 2017 12:31:01 +0000 (14:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:01 +0000 (15:01 +0200)
commitb5894d129b90f6600ac7e3420ac813c74054319b
treea7fbe38802a7e912d0e0bd9912c42cce01b5cc19
parent26d1f4382225dfdcafd5d63d06531a90cba47c0f
pinctrl: baytrail: Do not call WARN_ON for a firmware bug

WARN_ON causes a backtrace to get logged which is only useful for
kernel bugs. For signalling a firmware bug dev_warn(dev, FW_BUG "...")
should be used.

This fixes users running userspace software to monitor kernel oopses
getting a false positive bug-report every boot because of the wrong
use of WARN_ON.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-baytrail.c