pdata->ln_polrs = ln_polrs;
}
+static void ti_sn65dsi86_runtime_disable(void *data)
+{
+ pm_runtime_disable(data);
+}
+
static int ti_sn65dsi86_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
return ret;
pm_runtime_enable(pdata->dev);
+ ret = devm_add_action_or_reset(pdata->dev, ti_sn65dsi86_runtime_disable, pdata->dev);
+ if (ret)
+ return ret;
ret = ti_sn_setup_gpio_controller(pdata);
- if (ret) {
- pm_runtime_disable(pdata->dev);
+ if (ret)
return ret;
- }
i2c_set_clientdata(client, pdata);
drm_bridge_remove(&pdata->bridge);
- pm_runtime_disable(pdata->dev);
-
of_node_put(pdata->host_node);
return 0;