Skip to contentSkip to conversation

media_build: add backport patch for request_firmware_nowait() to kernels <= 2.6.32

PATCH New Gianluca Gennari 1 participant 1 message Jul 5, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media_build: add backport patch for request_firmware_nowait() to kernels <= 2.6.32

In kernel 2.6.33 request_firmware_nowait() gained a new parameter to set the memory allocation flags.
We have to remove this parameter to make the drxk driver (the only user of request_firmware_nowait() so far) compilable again with kernels older than 2.6.33.

---
 backports/backports.txt                         |    1 +
 backports/v2.6.32_request_firmware_nowait.patch |   15 +++++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 backports/v2.6.32_request_firmware_nowait.patch
backports/backports.txt +1 -0
index cc768d2..5554d9e 100644
@@ -62,6 +62,7 @@ add v2.6.33_pvrusb2_sysfs.patch
 
 [2.6.32]
 add v2.6.32_kfifo.patch
+add v2.6.32_request_firmware_nowait.patch
 
 [2.6.31]
 add v2.6.31_nodename.patch
backports/v2.6.32_request_firmware_nowait.patch new file +15 -0
new file mode 100644
index 0000000..8483189
@@ -0,0 +1,15 @@
+---
+ drivers/media/dvb/frontends/drxk_hard.c |    1 -
+ 1 files changed, 0 insertions(+), 1 deletions(-)
+
+--- a/drivers/media/dvb/frontends/drxk_hard.c
++++ b/drivers/media/dvb/frontends/drxk_hard.c
+@@ -6548,7 +6548,6 @@ struct dvb_frontend *drxk_attach(const struct drxk_config *config,
+ 		status = request_firmware_nowait(THIS_MODULE, 1,
+ 					      state->microcode_name,
+ 					      state->i2c->dev.parent,
+-					      GFP_KERNEL,
+ 					      state, load_firmware_cb);
+ 		if (status < 0) {
+ 			printk(KERN_ERR
+
Signature · 1 line
1.7.0.4