|
@@ -891,8 +891,7 @@ bool dss_has_feature(enum dss_feat_id id)
|
|
|
|
|
|
|
|
void dss_feat_get_reg_field(enum dss_feat_reg_field id, u8 *start, u8 *end)
|
|
void dss_feat_get_reg_field(enum dss_feat_reg_field id, u8 *start, u8 *end)
|
|
|
{
|
|
{
|
|
|
- if (id >= omap_current_dss_features->num_reg_fields)
|
|
|
|
|
- BUG();
|
|
|
|
|
|
|
+ BUG_ON(id >= omap_current_dss_features->num_reg_fields);
|
|
|
|
|
|
|
|
*start = omap_current_dss_features->reg_fields[id].start;
|
|
*start = omap_current_dss_features->reg_fields[id].start;
|
|
|
*end = omap_current_dss_features->reg_fields[id].end;
|
|
*end = omap_current_dss_features->reg_fields[id].end;
|