Commit c69d01bd58505b65a5903854ac7372f84ffc8627

Authored by Andreas Werner
Committed by Greg Kroah-Hartman
1 parent 86dbfda832

mcb: Fixed bar number assignment for the gdd

commit f75564d343010b025301d9548f2304f48eb25f01 upstream.

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 <andreas.werner@men.de>
Fixes: '3764e82e5' drivers: Introduce MEN Chameleon Bus
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mcb/mcb-parse.c
... ... @@ -57,7 +57,7 @@
57 57 mdev->id = GDD_DEV(reg1);
58 58 mdev->rev = GDD_REV(reg1);
59 59 mdev->var = GDD_VAR(reg1);
60   - mdev->bar = GDD_BAR(reg1);
  60 + mdev->bar = GDD_BAR(reg2);
61 61 mdev->group = GDD_GRP(reg2);
62 62 mdev->inst = GDD_INS(reg2);
63 63