| .. | .. |
|---|
| 497 | 497 | prediv = reg_1856 & 0x3f; |
|---|
| 498 | 498 | loopdiv = (reg_1856 >> 6) & 0x3f; |
|---|
| 499 | 499 | |
|---|
| 500 | | - if ((bw != NULL) && (bw->pll_prediv != prediv || bw->pll_ratio != loopdiv)) { |
|---|
| 500 | + if (loopdiv && bw && (bw->pll_prediv != prediv || bw->pll_ratio != loopdiv)) { |
|---|
| 501 | 501 | dprintk("Updating pll (prediv: old = %d new = %d ; loopdiv : old = %d new = %d)\n", prediv, bw->pll_prediv, loopdiv, bw->pll_ratio); |
|---|
| 502 | 502 | reg_1856 &= 0xf000; |
|---|
| 503 | 503 | reg_1857 = dib7000p_read_word(state, 1857); |
|---|
| .. | .. |
|---|
| 2822 | 2822 | |
|---|
| 2823 | 2823 | return ops; |
|---|
| 2824 | 2824 | } |
|---|
| 2825 | | -EXPORT_SYMBOL(dib7000p_attach); |
|---|
| 2825 | +EXPORT_SYMBOL_GPL(dib7000p_attach); |
|---|
| 2826 | 2826 | |
|---|
| 2827 | 2827 | static const struct dvb_frontend_ops dib7000p_ops = { |
|---|
| 2828 | 2828 | .delsys = { SYS_DVBT }, |
|---|