From patchwork Fri Aug 6 22:53:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Buesch X-Patchwork-Id: 118078 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o76MrKnJ027145 for ; Fri, 6 Aug 2010 22:53:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760454Ab0HFWxT (ORCPT ); Fri, 6 Aug 2010 18:53:19 -0400 Received: from 80-190-117-144.ip-home.de ([80.190.117.144]:41851 "EHLO bu3sch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762132Ab0HFWxS (ORCPT ); Fri, 6 Aug 2010 18:53:18 -0400 Received: by bu3sch.de with esmtpsa (Exim 4.69) (envelope-from ) id 1OhVmr-0005Q5-78; Sat, 07 Aug 2010 00:53:13 +0200 Message-ID: <4C5C9252.7040007@bu3sch.de> Date: Sat, 07 Aug 2010 00:53:06 +0200 From: =?ISO-8859-1?Q?Michael_B=FCsch?= User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: stable@kernel.org, Christoph Fritz , Larry Finger CC: b43-dev , wireless Subject: ssb: 2.6.34.1 -> 2.6.34.2 regression Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 06 Aug 2010 22:53:21 +0000 (UTC) Index: linux-2.6.34/drivers/ssb/pci.c =================================================================== --- linux-2.6.34.orig/drivers/ssb/pci.c 2010-08-05 23:26:07.000000000 +0200 +++ linux-2.6.34/drivers/ssb/pci.c 2010-08-07 00:17:26.000000000 +0200 @@ -169,7 +169,7 @@ err_pci: } /* Get the word-offset for a SSB_SPROM_XXX define. */ -#define SPOFF(offset) ((offset) / sizeof(u16)) +#define SPOFF(offset) (((offset) - SSB_SPROM_BASE1) / sizeof(u16)) /* Helper to extract some _offset, which is one of the SSB_SPROM_XXX defines. */ #define SPEX16(_outvar, _offset, _mask, _shift) \