int mipi_dsi_remove(struct platform_device *pdev) { int ret = 0; struct balong_fb_data_type *balongfd = NULL; if (NULL == pdev) { balongfb_loge("NULL Pointer\n"); return -EINVAL; } balongfd = platform_get_drvdata(pdev); if (NULL == balongfd) { balongfb_loge("NULL Pointer\n"); return -EINVAL; } balongfb_logi_display_debugfs("index=%d, enter!\n", balongfd->index); if (!IS_ERR(balongfd->dsi_cfg_clk)) { clk_put(balongfd->dsi_cfg_clk); } ret = panel_next_remove(pdev); balongfb_logi_display_debugfs("index=%d, exit!\n", balongfd->index); return ret; }
static int mipi_dsi_remove(struct platform_device *pdev) { int ret = 0; struct hisi_fb_data_type *hisifd = NULL; BUG_ON(pdev == NULL); hisifd = platform_get_drvdata(pdev); BUG_ON(hisifd == NULL); HISI_FB_DEBUG("fb%d, +.\n", hisifd->index); ret = panel_next_remove(pdev); if (hisifd->dss_dphy0_clk) { clk_put(hisifd->dss_dphy0_clk); hisifd->dss_dphy0_clk = NULL; } if (hisifd->dss_dphy1_clk) { clk_put(hisifd->dss_dphy1_clk); hisifd->dss_dphy1_clk = NULL; } HISI_FB_DEBUG("fb%d, -.\n", hisifd->index); return ret; }
static int dpe_remove(struct platform_device *pdev) { int ret = 0; struct k3_fb_data_type *k3fd = NULL; BUG_ON(pdev == NULL); k3fd = platform_get_drvdata(pdev); BUG_ON(k3fd == NULL); K3_FB_DEBUG("fb%d, +.\n", k3fd->index); ret = panel_next_remove(pdev); if (k3fd->dss_axi_clk) { clk_put(k3fd->dss_axi_clk); k3fd->dss_axi_clk = NULL; } if (k3fd->dss_pclk_clk) { clk_put(k3fd->dss_pclk_clk); k3fd->dss_pclk_clk = NULL; } if (k3fd->index == PRIMARY_PANEL_IDX) { if (k3fd->dss_pri_clk) { clk_put(k3fd->dss_pri_clk); k3fd->dss_pri_clk = NULL; } if (k3fd->dss_pxl0_clk) { clk_put(k3fd->dss_pxl0_clk); k3fd->dss_pxl0_clk = NULL; } } else if (k3fd->index == EXTERNAL_PANEL_IDX) { if (k3fd->dss_pxl1_clk) { clk_put(k3fd->dss_pxl1_clk); k3fd->dss_pxl1_clk = NULL; } } else if (k3fd->index == AUXILIARY_PANEL_IDX) { if (k3fd->dss_aux_clk) { clk_put(k3fd->dss_aux_clk); k3fd->dss_aux_clk = NULL; } } else { ret = -1; K3_FB_ERR("fb%d, not support this device!\n", k3fd->index); } K3_FB_DEBUG("fb%d, -.\n", k3fd->index); return ret; }
static int rgb2mipi_remove(struct platform_device *pdev) { int ret = 0; struct hisi_fb_data_type *hisifd = NULL; BUG_ON(pdev == NULL); hisifd = platform_get_drvdata(pdev); BUG_ON(hisifd == NULL); HISI_FB_DEBUG("fb%d, +.\n", hisifd->index); ret = panel_next_remove(pdev); HISI_FB_DEBUG("fb%d, -.\n", hisifd->index); return ret; }
static int ldi_remove(struct platform_device *pdev) { int ret = 0; struct k3_fb_data_type *k3fd = NULL; BUG_ON(pdev == NULL); k3fd = platform_get_drvdata(pdev); BUG_ON(k3fd == NULL); k3fb_logi("index=%d, enter!\n", k3fd->index); if (!IS_ERR(k3fd->ldi_clk)) { clk_put(k3fd->ldi_clk); } ret = panel_next_remove(pdev); k3fb_logi("index=%d, exit!\n", k3fd->index); return ret; }