Unfortunately, one cannot hold on to the struct firmware that request_firmware_nowait() hands off, which is needed in some cases. Allow this by requiring the callback to free it (via release_firmware). Additionally, give it a gfp_t parameter -- all the current users call it from a GFP_KERNEL context so the GFP_ATOMIC isn't necessary. This also marks an API break which is useful in a sense, although that is obviously not the primary purpose of this change. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Marcel Holtmann <marcel@holtmann.org> Cc: Ming Lei <tom.leiming@gmail.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Woodhouse <David.Woodhouse@intel.com> Cc: Pavel Roskin <proski@gnu.org> Cc: Abhay Salunke <abhay_salunke@dell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
||
---|---|---|
.. | ||
altpciechdma | ||
android | ||
arlan | ||
asus_oled | ||
b3dfg | ||
comedi | ||
cx25821 | ||
dream | ||
dst | ||
echo | ||
et131x | ||
frontier | ||
go7007 | ||
hv | ||
iio | ||
line6 | ||
mimio | ||
netwave | ||
octeon | ||
otus | ||
p9auth | ||
panel | ||
phison | ||
poch | ||
pohmelfs | ||
quatech_usb2 | ||
rar | ||
rt2860 | ||
rt2870 | ||
rt3070 | ||
rt3090 | ||
rtl8187se | ||
rtl8192e | ||
rtl8192su | ||
sep | ||
serqt_usb2 | ||
slicoss | ||
strip | ||
udlfb | ||
usbip | ||
vme | ||
vt6655 | ||
vt6656 | ||
wavelan | ||
winbond | ||
wlan-ng | ||
Kconfig | ||
Makefile | ||
staging.c |