diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_plane.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_plane.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index 891a4dc608af..ee8e2b3a117e 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c | |||
| @@ -388,20 +388,15 @@ struct drm_plane *omap_plane_init(struct drm_device *dev, | |||
| 388 | struct drm_plane *plane = NULL; | 388 | struct drm_plane *plane = NULL; |
| 389 | struct omap_plane *omap_plane; | 389 | struct omap_plane *omap_plane; |
| 390 | struct omap_overlay_info *info; | 390 | struct omap_overlay_info *info; |
| 391 | int ret; | ||
| 392 | 391 | ||
| 393 | DBG("%s: priv=%d", plane_names[id], private_plane); | 392 | DBG("%s: priv=%d", plane_names[id], private_plane); |
| 394 | 393 | ||
| 395 | omap_plane = kzalloc(sizeof(*omap_plane), GFP_KERNEL); | 394 | omap_plane = kzalloc(sizeof(*omap_plane), GFP_KERNEL); |
| 396 | if (!omap_plane) | 395 | if (!omap_plane) |
| 397 | goto fail; | 396 | return NULL; |
| 398 | 397 | ||
| 399 | ret = drm_flip_work_init(&omap_plane->unpin_work, 16, | 398 | drm_flip_work_init(&omap_plane->unpin_work, |
| 400 | "unpin", unpin_worker); | 399 | "unpin", unpin_worker); |
| 401 | if (ret) { | ||
| 402 | dev_err(dev->dev, "could not allocate unpin FIFO\n"); | ||
| 403 | goto fail; | ||
| 404 | } | ||
| 405 | 400 | ||
| 406 | omap_plane->nformats = omap_framebuffer_get_formats( | 401 | omap_plane->nformats = omap_framebuffer_get_formats( |
| 407 | omap_plane->formats, ARRAY_SIZE(omap_plane->formats), | 402 | omap_plane->formats, ARRAY_SIZE(omap_plane->formats), |
| @@ -443,10 +438,4 @@ struct drm_plane *omap_plane_init(struct drm_device *dev, | |||
| 443 | omap_plane->info.zorder = id; | 438 | omap_plane->info.zorder = id; |
| 444 | 439 | ||
| 445 | return plane; | 440 | return plane; |
| 446 | |||
| 447 | fail: | ||
| 448 | if (plane) | ||
| 449 | omap_plane_destroy(plane); | ||
| 450 | |||
| 451 | return NULL; | ||
| 452 | } | 441 | } |
