[PATCH] backlight: corgi_bl: Generalise to support other Sharp SL hardware
[powerpc.git] / drivers / video / bw2.c
index c029db4..6577fdf 100644 (file)
@@ -327,8 +327,7 @@ static void bw2_init_one(struct sbus_dev *sdev)
        } else
 #else
        {
-               if (!sdev)
-                       BUG();
+               BUG_ON(!sdev);
                all->par.physbase = sdev->reg_addrs[0].phys_addr;
                resp = &sdev->resource[0];
                sbusfb_fill_var(&all->info.var, (sdev ? sdev->prom_node : 0), 1);