mirror of
https://github.com/torvalds/linux.git
synced 2026-10-28 17:55:02 +01:00
drm/bridge: chipone-icn6211: use devm_mipi_dsi_attach
Follow up on the previous devm_drm_bridge_add() conversion by converting the remaining manual cleanup in chipone-icn6211 to the managed helper. Suggested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Link: https://patch.msgid.link/20260521212529.151493-1-osama.abdelkader@gmail.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
parent
09b47186a4
commit
5d2584e2ff
|
|
@ -531,7 +531,7 @@ static int chipone_dsi_attach(struct chipone *icn)
|
|||
dsi->hs_rate = 500000000;
|
||||
dsi->lp_rate = 16000000;
|
||||
|
||||
ret = mipi_dsi_attach(dsi);
|
||||
ret = devm_mipi_dsi_attach(dev, dsi);
|
||||
if (ret < 0)
|
||||
dev_err(icn->dev, "failed to attach dsi\n");
|
||||
|
||||
|
|
@ -763,11 +763,6 @@ static int chipone_i2c_probe(struct i2c_client *client)
|
|||
return chipone_dsi_host_attach(icn);
|
||||
}
|
||||
|
||||
static void chipone_dsi_remove(struct mipi_dsi_device *dsi)
|
||||
{
|
||||
mipi_dsi_detach(dsi);
|
||||
}
|
||||
|
||||
static const struct of_device_id chipone_of_match[] = {
|
||||
{ .compatible = "chipone,icn6211", },
|
||||
{ /* sentinel */ }
|
||||
|
|
@ -776,7 +771,6 @@ MODULE_DEVICE_TABLE(of, chipone_of_match);
|
|||
|
||||
static struct mipi_dsi_driver chipone_dsi_driver = {
|
||||
.probe = chipone_dsi_probe,
|
||||
.remove = chipone_dsi_remove,
|
||||
.driver = {
|
||||
.name = "chipone-icn6211",
|
||||
.of_match_table = chipone_of_match,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user