Skip to content

Commit

Permalink
b43legacy: fix bcm4303 crash
Browse files Browse the repository at this point in the history
This fixes an hard crash which happened upon driver loading on bcm4303 rev.
2 devices.

Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Stefano Brivio authored and John W. Linville committed Apr 8, 2008
1 parent 7981a35 commit 881400a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/ssb/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,12 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus)
goto out;

cc = &bus->chipco;

if (!cc->dev)
goto out;
if (cc->dev->id.revision < 5)
goto out;

ssb_chipco_set_clockmode(cc, SSB_CLKMODE_SLOW);
err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0);
if (err)
Expand Down

0 comments on commit 881400a

Please sign in to comment.