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 fcf1abd commit 2860f32
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions fl2000_drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ static const u32 fl2000_pixel_formats[] = {
DRM_FORMAT_XRGB8888,
};

/* IT66121 HDMI bridge driver name*/
static const char *fl2000_supported_bridge = "it66121";
/* TODO: This has to come from driver parameters */
static 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 @@ -481,13 +481,20 @@ static int fl2000_drm_bind(struct device *master)

dev_info(master, "Binding FL2000 master");

drm_if = dev_get_drvdata(&usb_dev->dev);
if (!drm_if) {
dev_err(&usb_dev->dev, "Cannot find DRM structure!");
return -ENODEV;
}

/* Attach bridge */
ret = component_bind_all(master, &drm_if->pipe);
if (ret) {
dev_err(&usb_dev->dev, "Cannot attach bridge (%d)", ret);
return ret;
}

drm = &drm_if->drm;
drm_mode_config_reset(drm);

fl2000_reset(usb_dev);
Expand Down Expand Up @@ -520,8 +527,8 @@ static void fl2000_drm_unbind(struct device *master)
dev_err(&usb_dev->dev, "Cannot find DRM structure!");
return;
}
drm = &drm_if->drm;

drm = &drm_if->drm;
drm_atomic_helper_shutdown(drm);

/* Detach bridge */
Expand Down

0 comments on commit 2860f32

Please sign in to comment.