[PATCH] drm: bridge/dw_hdmi: Return num_modes in dw_hdmi_connector_get_modes

Thierry Reding treding at nvidia.com
Fri Jun 5 03:02:40 PDT 2015


On Thu, Jun 04, 2015 at 11:04:36AM -0700, Doug Anderson wrote:
> The dw_hdmi_connector_get_modes() function accidentally forgets to
> return the number of modes it added, although it has this information
> stored in a local variable.  Let's fix that.
> 
> Without this fix, drm_helper_probe_single_connector_modes_merge_bits()
> could get confused and always call drm_add_modes_noedid().  That's not
> right.
> 
> Signed-off-by: Doug Anderson <dianders at chromium.org>
> ---
>  drivers/gpu/drm/bridge/dw_hdmi.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Thierry


More information about the dri-devel mailing list