diff options
Diffstat (limited to 'drivers/ssb/main.c')
-rw-r--r-- | drivers/ssb/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 19ddd2bd1057..6ce92e82b64e 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c | |||
@@ -1190,6 +1190,12 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus) | |||
1190 | goto out; | 1190 | goto out; |
1191 | 1191 | ||
1192 | cc = &bus->chipco; | 1192 | cc = &bus->chipco; |
1193 | |||
1194 | if (!cc->dev) | ||
1195 | goto out; | ||
1196 | if (cc->dev->id.revision < 5) | ||
1197 | goto out; | ||
1198 | |||
1193 | ssb_chipco_set_clockmode(cc, SSB_CLKMODE_SLOW); | 1199 | ssb_chipco_set_clockmode(cc, SSB_CLKMODE_SLOW); |
1194 | err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0); | 1200 | err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0); |
1195 | if (err) | 1201 | if (err) |