disp: msm: dsi: remove dsi bus scaling setting
DSI driver did not use msm bus scaling setting, remove the code. Change-Id: I71675c8f4e3e97f1ded72ecac3fa87bdc7fb3774 Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
6cb205cbba
commit
cc564849ae
@@ -7,7 +7,6 @@
|
||||
#include <linux/err.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/msm-bus.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <video/mipi_display.h>
|
||||
|
||||
@@ -812,43 +811,6 @@ error_digital:
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int dsi_ctrl_axi_bus_client_init(struct platform_device *pdev,
|
||||
struct dsi_ctrl *ctrl)
|
||||
{
|
||||
int rc = 0;
|
||||
struct dsi_ctrl_bus_scale_info *bus = &ctrl->axi_bus_info;
|
||||
|
||||
bus->bus_scale_table = msm_bus_cl_get_pdata(pdev);
|
||||
if (IS_ERR_OR_NULL(bus->bus_scale_table)) {
|
||||
rc = PTR_ERR(bus->bus_scale_table);
|
||||
DSI_CTRL_DEBUG(ctrl, "msm_bus_cl_get_pdata() failed, rc = %d\n",
|
||||
rc);
|
||||
bus->bus_scale_table = NULL;
|
||||
return rc;
|
||||
}
|
||||
|
||||
bus->bus_handle = msm_bus_scale_register_client(bus->bus_scale_table);
|
||||
if (!bus->bus_handle) {
|
||||
rc = -EINVAL;
|
||||
DSI_CTRL_ERR(ctrl, "failed to register axi bus client\n");
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int dsi_ctrl_axi_bus_client_deinit(struct dsi_ctrl *ctrl)
|
||||
{
|
||||
struct dsi_ctrl_bus_scale_info *bus = &ctrl->axi_bus_info;
|
||||
|
||||
if (bus->bus_handle) {
|
||||
msm_bus_scale_unregister_client(bus->bus_handle);
|
||||
|
||||
bus->bus_handle = 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int dsi_ctrl_validate_panel_info(struct dsi_ctrl *dsi_ctrl,
|
||||
struct dsi_host_config *config)
|
||||
{
|
||||
@@ -1928,11 +1890,6 @@ static int dsi_ctrl_dev_probe(struct platform_device *pdev)
|
||||
goto fail_supplies;
|
||||
}
|
||||
|
||||
rc = dsi_ctrl_axi_bus_client_init(pdev, dsi_ctrl);
|
||||
if (rc)
|
||||
DSI_CTRL_DEBUG(dsi_ctrl, "failed to init axi bus client, rc = %d\n",
|
||||
rc);
|
||||
|
||||
item->ctrl = dsi_ctrl;
|
||||
|
||||
mutex_lock(&dsi_ctrl_list_lock);
|
||||
@@ -1977,10 +1934,6 @@ static int dsi_ctrl_dev_remove(struct platform_device *pdev)
|
||||
mutex_unlock(&dsi_ctrl_list_lock);
|
||||
|
||||
mutex_lock(&dsi_ctrl->ctrl_lock);
|
||||
rc = dsi_ctrl_axi_bus_client_deinit(dsi_ctrl);
|
||||
if (rc)
|
||||
DSI_CTRL_ERR(dsi_ctrl, "failed to deinitialize axi bus client, rc = %d\n",
|
||||
rc);
|
||||
|
||||
rc = dsi_ctrl_supplies_deinit(dsi_ctrl);
|
||||
if (rc)
|
||||
|
Reference in New Issue
Block a user