Skip to content

Commit fff80d9

Browse files
6by9popcornmix
authored andcommitted
Revert "Extending ili9881c driver support for nwe080 panel"
This reverts commit 11bfcb2.
1 parent 646b9d9 commit fff80d9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/gpu/drm/panel/panel-ilitek-ili9881c.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,16 +2579,17 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi)
25792579
struct ili9881c *ctx;
25802580
int ret;
25812581

2582-
ctx = devm_drm_panel_alloc(&dsi->dev, struct ili9881c, panel, &ili9881c_funcs,
2583-
DRM_MODE_CONNECTOR_DSI);
2584-
if (IS_ERR(ctx))
2585-
return PTR_ERR(ctx);
2586-
2582+
ctx = devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL);
2583+
if (!ctx)
2584+
return -ENOMEM;
25872585
mipi_dsi_set_drvdata(dsi, ctx);
25882586
ctx->dsi = dsi;
25892587
ctx->desc = of_device_get_match_data(&dsi->dev);
25902588

25912589
ctx->panel.prepare_prev_first = true;
2590+
drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs,
2591+
DRM_MODE_CONNECTOR_DSI);
2592+
25922593
ctx->power = devm_regulator_get(&dsi->dev, "power");
25932594
if (IS_ERR(ctx->power))
25942595
return dev_err_probe(&dsi->dev, PTR_ERR(ctx->power),

0 commit comments

Comments
 (0)