|
@@ -591,14 +591,14 @@ static int vc4_crtc_bind(struct device *dev, struct device *master, void *data)
|
|
|
* that will take too much.
|
|
|
*/
|
|
|
primary_plane = vc4_plane_init(drm, DRM_PLANE_TYPE_PRIMARY);
|
|
|
- if (!primary_plane) {
|
|
|
+ if (IS_ERR(primary_plane)) {
|
|
|
dev_err(dev, "failed to construct primary plane\n");
|
|
|
ret = PTR_ERR(primary_plane);
|
|
|
goto err;
|
|
|
}
|
|
|
|
|
|
cursor_plane = vc4_plane_init(drm, DRM_PLANE_TYPE_CURSOR);
|
|
|
- if (!cursor_plane) {
|
|
|
+ if (IS_ERR(cursor_plane)) {
|
|
|
dev_err(dev, "failed to construct cursor plane\n");
|
|
|
ret = PTR_ERR(cursor_plane);
|
|
|
goto err_primary;
|