diff options
Diffstat (limited to 'drivers/video/bw2.c')
-rw-r--r-- | drivers/video/bw2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/bw2.c b/drivers/video/bw2.c index c029db4646f6..6577fdfdfc16 100644 --- a/drivers/video/bw2.c +++ b/drivers/video/bw2.c | |||
@@ -327,8 +327,7 @@ static void bw2_init_one(struct sbus_dev *sdev) | |||
327 | } else | 327 | } else |
328 | #else | 328 | #else |
329 | { | 329 | { |
330 | if (!sdev) | 330 | BUG_ON(!sdev); |
331 | BUG(); | ||
332 | all->par.physbase = sdev->reg_addrs[0].phys_addr; | 331 | all->par.physbase = sdev->reg_addrs[0].phys_addr; |
333 | resp = &sdev->resource[0]; | 332 | resp = &sdev->resource[0]; |
334 | sbusfb_fill_var(&all->info.var, (sdev ? sdev->prom_node : 0), 1); | 333 | sbusfb_fill_var(&all->info.var, (sdev ? sdev->prom_node : 0), 1); |