diff options
author | Dave Airlie <airlied@redhat.com> | 2018-03-01 14:04:30 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-03-01 14:04:30 +1000 |
commit | 0feeb106c79532074b370c3cb45f742ef4302cc6 (patch) | |
tree | 3dd62a1b2d1424b7dd7d17bc7fb4a2305d3ca772 /drivers/gpu/drm/tilcdc/tilcdc_crtc.c | |
parent | 8bb5b22255dac09cd74eae9f86333b474d69fbbe (diff) | |
parent | 7f78c3d69df03674644b724cdf4f01d67962beb4 (diff) | |
download | kernel_replicant_linux-0feeb106c79532074b370c3cb45f742ef4302cc6.tar.gz kernel_replicant_linux-0feeb106c79532074b370c3cb45f742ef4302cc6.tar.bz2 kernel_replicant_linux-0feeb106c79532074b370c3cb45f742ef4302cc6.zip |
Merge tag 'tilcdc-4.17' of https://github.com/jsarha/linux into drm-next
drm/tilcdc changes to v4.17
* tag 'tilcdc-4.17' of https://github.com/jsarha/linux:
drm/tilcdc: tilcdc_panel: Rename device from "panel" to "tilcdc-panel"
drm/tilcdc: Add support for drm panels
drm/tilcdc: panel: Use common error handling code in of_get_panel_info()
drm/tilcdc: Delete an error message for a failed memory allocation in seven functions
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_crtc.c')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index 8bf6bb93dc79..1b278a22c8b7 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c @@ -994,10 +994,8 @@ int tilcdc_crtc_create(struct drm_device *dev) int ret; tilcdc_crtc = devm_kzalloc(dev->dev, sizeof(*tilcdc_crtc), GFP_KERNEL); - if (!tilcdc_crtc) { - dev_err(dev->dev, "allocation failed\n"); + if (!tilcdc_crtc) return -ENOMEM; - } init_completion(&tilcdc_crtc->palette_loaded); tilcdc_crtc->palette_base = dmam_alloc_coherent(dev->dev, |