Skip to content

Commit

Permalink
ssb: fix cardbus slot in hostmode
Browse files Browse the repository at this point in the history
ssb supports one extra device on the cardbus. This results in two
devices in total, one beeing the host controller itself and the other
the external device connected to the hostcontroller over cardbus.

This makes the cardbus slot work on the Linksys WRT150N.

Reported-by: Aaron Z <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
hauke authored and linvjw committed Feb 1, 2012
1 parent 5fb8c18 commit a6c8462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ssb/driver_pcicore.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static u32 get_cfgspace_addr(struct ssb_pcicore *pc,
u32 tmp;

/* We do only have one cardbus device behind the bridge. */
if (pc->cardbusmode && (dev >= 1))
if (pc->cardbusmode && (dev > 1))
goto out;

if (bus == 0) {
Expand Down

0 comments on commit a6c8462

Please sign in to comment.