firmware: share fw fallback killing on reboot/suspend
authorLuis R. Rodriguez <mcgrof@kernel.org>
Tue, 2 May 2017 08:31:03 +0000 (01:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 10:15:49 +0000 (19:15 +0900)
commitc4b768934be613fb882e4e4090946218d76c8e1b
tree0154bc7077a06c1cfe89a1a03d0603f305074fdb
parent6383331d8f390da68e5cb3e9184b5c99429c4545
firmware: share fw fallback killing on reboot/suspend

We kill pending fallback requests on suspend and reboot,
the only difference is that on suspend we only kill custom
fallback requests. Provide a wrapper that lets us customize
the request with a flag.

This also lets us simplify the #ifdef'ery over the calls.

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c