未验证 提交 89d651f2 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!560 [sync] PR-539: LoongArch: fix compile warnning of drm/loongson driver

Merge Pull Request from: @openeuler-sync-bot 
 

Origin pull request: 
https://gitee.com/openeuler/kernel/pulls/539 
 
fix compile warnning by remove unused function and variable. 
 
Link:https://gitee.com/openeuler/kernel/pulls/560 

Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
......@@ -125,25 +125,6 @@ static const struct drm_mode_config_funcs lsdc_mode_config_funcs = {
.mode_valid = lsdc_device_mode_valid,
};
static int lsdc_gem_cma_dumb_create(struct drm_file *file,
struct drm_device *ddev,
struct drm_mode_create_dumb *args)
{
struct lsdc_device *ldev = to_lsdc(ddev);
const struct lsdc_chip_desc *desc = ldev->desc;
unsigned int bytes_per_pixel = (args->bpp + 7) / 8;
unsigned int pitch = bytes_per_pixel * args->width;
/*
* The dc in ls7a1000/ls2k1000/ls2k0500 require the stride be a
* multiple of 256 bytes which is for sake of optimize dma data
* transfer.
*/
args->pitch = roundup(pitch, desc->stride_alignment);
return drm_gem_cma_dumb_create_internal(file, ddev, args);
}
DEFINE_DRM_GEM_FOPS(lsdc_gem_fops);
static struct drm_driver lsdc_vram_driver = {
......@@ -456,7 +437,6 @@ static int lsdc_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
static void lsdc_pci_remove(struct pci_dev *pdev)
{
struct drm_device *ddev = pci_get_drvdata(pdev);
struct lsdc_device *ldev = to_lsdc(ddev);
drm_dev_unregister(ddev);
drm_atomic_helper_shutdown(ddev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册