if (supported_outputs & output->id)
encoder->possible_crtcs |= (1 << id);
}
+
+ omap_dss_put_device(output);
}
DBG("registered %d planes, %d crtcs, %d encoders and %d connectors\n",
list_for_each_entry(out, &output_list, list) {
if (strcmp(out->name, name) == 0)
- return out;
+ return omap_dss_get_device(out);
}
return NULL;
list_for_each_entry(out, &output_list, list) {
if (out->dev->of_node == node)
- return out;
+ return omap_dss_get_device(out);
}
return NULL;
struct omap_dss_device *omapdss_find_output_from_display(struct omap_dss_device *dssdev)
{
- return dssdev->output;
+ return omap_dss_get_device(dssdev->output);
}
EXPORT_SYMBOL(omapdss_find_output_from_display);
struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_device *dssdev)
{
struct omap_dss_device *out;
+ struct omap_overlay_manager *mgr;
out = omapdss_find_output_from_display(dssdev);
if (out == NULL)
return NULL;
- return out->manager;
+ mgr = out->manager;
+
+ omap_dss_put_device(out);
+
+ return mgr;
}
EXPORT_SYMBOL(omapdss_find_mgr_from_display);