include/linux/firmware.h: Check for FW_ACTION_HOTPLUG.
authorIan Abbott <abbotti@mev.co.uk>
Thu, 31 May 2012 10:08:55 +0000 (11:08 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 31 May 2012 10:08:55 +0000 (11:08 +0100)
commit63e521d0a280169b48d569ec96611aa5a4011f8c
tree94368fe9f5e3400876683246e80fb3fc0658ce69
parent85bd8ba985dafe7794525b05f0a8afdf79e5f21e
include/linux/firmware.h: Check for FW_ACTION_HOTPLUG.

The FW_ACTION_HOTPLUG and FW_ACTION_NOHOTPLUG macros, and the 'hotplug'
(later renamed 'uevent') parameter of request_firmware_nowait() were
added in vanilla kernel 2.6.14.  Update the include/linux/firmware.h
compatibility code to work with kernels prior to 2.6.14.  If
FW_ACTION_HOTPLUG is not defined, omit the uevent parameter and define
FW_ACTION_HOTPLUG and FW_ACTION_NOHOTPLUG.  The uevent parameter will be
ignored for these older kernels so FW_ACTION_NOHOTPLUG will behave just
like FW_ACTION_HOTPLUG for these older kernels.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
include/linux/firmware.h