Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752923AbcDTGgB (ORCPT ); Wed, 20 Apr 2016 02:36:01 -0400 Received: from mail1.bemta3.messagelabs.com ([195.245.230.167]:59147 "EHLO mail1.bemta3.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbcDTGf7 (ORCPT ); Wed, 20 Apr 2016 02:35:59 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRWlGSWpSXmKPExsUS8J9toq6Hsni 4wZt+HovHXTNYLS7vmsNmsfLbT2YHZo+ds+6ye2w+Xe3xeZNcAHMUa2ZeUn5FAmvG5aa/zAXn WSveTVrP2sD4jKWLkYtDSKCBUeLH5x9MXYycHBICfhLXO7YxQiTmM0psm9vNCJJgEVCVePv6B RuIzSagI3GuvZkVxBYRkJT4d7EfrJlZwELiz5QGZhBbWMBWovnyWTCbF6j+1vOVbBC2oMTJmU 9YIOp1JBbs/gQU5wCypSWW/+MAMUUFVCReHawHqRASUJL4/KKPGeI0eYm9fYvBqiUE4iS+3DG FMK0lJm5OnMAoOAvJ+FlIxs9CGL+AkXkVo0ZxalFZapGuobleUlFmekZJbmJmjq6hgbFebmpx cWJ6ak5iUrFecn7uJkZgSDMAwQ7Gl6c9DzFKcjApifKqCoiHC/El5adUZiQWZ8QXleakFh9il OHgUJLgfaoIlBMsSk1PrUjLzAFGF0xagoNHSYQ3DyTNW1yQmFucmQ6ROsWoy7Hgx+21TEIsef l5qVLivCUgRQIgRRmleXAjYJF+iVFWSpiXEegoIZ6C1KLczBJU+VeM4hyMSsK8b0Gm8GTmlcB tegV0BBPQEfx3RUGOKElESEk1MG5P+LTp6PorkW13WZRq1+1813Whf2WEq9nX1bO/SlvuZ/zT tJ4z7BK/3Ea2h75pyr8eff0swnRku7XsrhuZ3Jeje7mvHOg3mHH48FXLmqgmjasuUjJhmU+EJ OwvzWByccnjFu5qZnjHXGRxN9fIY/dL3fyDTXZO7+zz5Z/Pnf7OtvIiX8pDLyWW4oxEQy3mou JEAF2tEznvAgAA X-Env-Sender: Andreas.Werner@men.de X-Msg-Ref: server-14.tower-38.messagelabs.com!1461134151!34953966!1 X-Originating-IP: [80.255.6.145] X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked X-PGP-Universal: processed; by keys.men.de on Wed, 20 Apr 2016 08:35:52 +0200 Date: Wed, 20 Apr 2016 08:35:47 +0200 From: Andreas Werner To: CC: , Subject: [PATCH] mcb: Fixed bar number assignment for the gdd Message-ID: <20160420063538.GA2684@awelinux> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [192.1.1.170] X-ClientProxiedBy: MEN-EX01.intra.men.de (192.168.1.1) To MEN-EX01.intra.men.de (192.168.1.1) X-EXCLAIMER-MD-CONFIG: e4841e51-7998-49c0-ba41-8b8a0e2d8962 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 718 Lines: 24 The bar number is found in reg2 within the gdd. Therefore we need to change the assigment from reg1 to reg2 which is the correct location. Signed-off-by: Andreas Werner --- drivers/mcb/mcb-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mcb/mcb-parse.c b/drivers/mcb/mcb-parse.c index 0049269..b0155b0 100644 --- a/drivers/mcb/mcb-parse.c +++ b/drivers/mcb/mcb-parse.c @@ -57,7 +57,7 @@ static int chameleon_parse_gdd(struct mcb_bus *bus, mdev->id = GDD_DEV(reg1); mdev->rev = GDD_REV(reg1); mdev->var = GDD_VAR(reg1); - mdev->bar = GDD_BAR(reg1); + mdev->bar = GDD_BAR(reg2); mdev->group = GDD_GRP(reg2); mdev->inst = GDD_INS(reg2); -- 2.6.2