Skip to content

Commit

Permalink
Build fixing fl2000_drm
Browse files Browse the repository at this point in the history
  • Loading branch information
klogg committed Sep 11, 2024
1 parent 07b840a commit fcf1abd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions fl2000_drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static const u32 fl2000_pixel_formats[] = {
};

/* IT66121 HDMI bridge driver name*/
static const char *const fl2000_supported_bridge = "it66121";
static const char *fl2000_supported_bridge = "it66121";

/* Maximum pixel clock set to 500MHz. It is hard to get more or less precise PLL configuration for
* higher clock
Expand Down Expand Up @@ -459,7 +459,7 @@ void fl2000_drm_vblank(struct usb_device *usb_dev)
if (!drm_if->vblank_enabled)
return;

crtc = &drm_if->pipe->crtc;
crtc = &drm_if->pipe.crtc;
ret = drm_crtc_handle_vblank(crtc);
if (ret)
dev_err(&usb_dev->dev, "Cannot handle vblank event (%d)", ret);
Expand Down Expand Up @@ -601,14 +601,13 @@ int fl2000_drm_init(struct usb_device *usb_dev)
drm_encoder_helper_add(&drm_if->pipe.encoder, &fl2000_encoder_funcs);

/* Register supported HDMI bridge as a component with match by name */
ret = component_match_add(&usb_dev->dev, &match, component_compare_dev_name, fl2000_supported_bridge);
if (ret) {
dev_err(&usb_dev->dev, "Cannot add component match! (%d)", ret);
component_match_add(&usb_dev->dev, &match, component_compare_dev_name, fl2000_supported_bridge);
if (!match) {
dev_err(&usb_dev->dev, "Cannot find supported HDMI bridge!");
drm_mode_config_cleanup(drm);
drm_dev_put(drm);
return ret;
return -ENODEV;
}

/* Register component master - component bind/unbind functions will complete the registration
* and initializtion of DRM device chain
*/
Expand Down

0 comments on commit fcf1abd

Please sign in to comment.