]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
greybus: hid: Replace WARN_ON() with dev_err()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 26 Feb 2016 11:14:19 +0000 (16:44 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 29 Feb 2016 22:49:28 +0000 (14:49 -0800)
commit9b22f155beb4e5a71f86710034b478ec43af9c43
treee9540b2405502af2f024bf6d7b1af1e9f5e4de4d
parentb22b7104d5930ed4aae2c8494b8f95f20a85d66b
greybus: hid: Replace WARN_ON() with dev_err()

WARN_ON() is a bit harsh here, as we just failed to power-off the HID
device while it is getting removed.

Replace it with dev_err().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/hid.c