From: lxoliva Date: Thu, 17 May 2012 01:54:54 +0000 (+0000) Subject: Fix deblobbing of bnx2x. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=32b2265d81b7bec21eb0c41439414278f5eeb1bb;p=releases.git Fix deblobbing of bnx2x. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@8610 559672b5-ba27-0410-b829-e8f1faed8b1b --- diff --git a/deblob-3.4 b/deblob-3.4 index 6aa312a77fd..bbdaed13c17 100755 --- a/deblob-3.4 +++ b/deblob-3.4 @@ -1132,7 +1132,23 @@ clean_sed ' -EINVAL) }' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 'report missing Free firmware' clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +clean_sed ' +/^bool bnx2x_test_firmware_version/,/^}$/{ + /^ u32 my_fw = /i\ + /*(DEBLOBBED)*/ + /^ u32 my_fw = /,/<< 24);/d; + /^ u32 loaded_fw = /,/^$/{ + /^$/i\ +\ + u32 my_fw = ~loaded_fw; + } +}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 'fail already-loaded test' clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h +clean_sed ' +/static void bnx2x_init_wr_wb/{ + i\ +extern void bnx2x_init_wr_wb(struct bnx2x *, u32, const u32 *, u32); +}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h 'declare removed function' clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h clean_kconfig drivers/net/ethernet/broadcom/Kconfig 'BNX2X' clean_mk CONFIG_BNX2X drivers/net/ethernet/broadcom/bnx2x/Makefile