From patchwork Thu Jul 5 15:18:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Gennari X-Patchwork-Id: 1161291 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 84FE43FE4F for ; Thu, 5 Jul 2012 15:18:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755909Ab2GEPS1 (ORCPT ); Thu, 5 Jul 2012 11:18:27 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:65304 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974Ab2GEPS1 (ORCPT ); Thu, 5 Jul 2012 11:18:27 -0400 Received: by werb14 with SMTP id b14so5373398wer.19 for ; Thu, 05 Jul 2012 08:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=FMblNQ0woV+opTgmAIwnN9iBJWW76pHXNufERDlrnxM=; b=bLIb5f08zeMHoHqpdZmoTGH+8Zp7/sqPjsxvYO2hHWuVlUboXWpX+HFghuobXXo65I asWgH5gVlFrFMVvhh9CWX7Ety+7CxgYfLz82MG1WkkL21bdLYRlIKmOK7CgVWN6IORAT +gGFpL/UKra3FgYJ0MZp5uHE0oTKuz7LgarJEzreuZ9HfSXPLIdWerDZcOOU0HNZqjOB OBaD0g2oA+MVpbHDs5ZlyVuljRUkrI9kgmIrnxnKGPLaWtl6QzcKQAyM076+P0zwYMlX QaNCN1PK8VXJX3wiUfGmZjmQqCj7Nyy0IRJ5d+8K7mgYD6jw4YqbVBUgbg0n9ZvoCfjm qEpw== Received: by 10.216.173.136 with SMTP id v8mr6528058wel.167.1341501505706; Thu, 05 Jul 2012 08:18:25 -0700 (PDT) Received: from localhost.localdomain (93-50-34-119.ip150.fastwebnet.it. [93.50.34.119]) by mx.google.com with ESMTPS id j6sm796834wiy.4.2012.07.05.08.18.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 08:18:24 -0700 (PDT) From: Gianluca Gennari To: linux-media@vger.kernel.org, mchehab@redhat.com Cc: hans.verkuil@cisco.com, Gianluca Gennari Subject: [PATCH] media_build: add backport patch for request_firmware_nowait() to kernels <= 2.6.32 Date: Thu, 5 Jul 2012 17:18:15 +0200 Message-Id: <1341501495-22729-1-git-send-email-gennarone@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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. Signed-off-by: Gianluca Gennari --- 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 diff --git a/backports/backports.txt b/backports/backports.txt index cc768d2..5554d9e 100644 --- a/backports/backports.txt +++ b/backports/backports.txt @@ -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 diff --git a/backports/v2.6.32_request_firmware_nowait.patch b/backports/v2.6.32_request_firmware_nowait.patch new file mode 100644 index 0000000..8483189 --- /dev/null +++ b/backports/v2.6.32_request_firmware_nowait.patch @@ -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 +