static void ipu_put_resources(struct ipu_crtc *ipu_crtc) { if (!IS_ERR_OR_NULL(ipu_crtc->dc)) ipu_dc_put(ipu_crtc->dc); if (!IS_ERR_OR_NULL(ipu_crtc->di)) ipu_di_put(ipu_crtc->di); }
static void ipu_put_resources(struct ipu_crtc *ipu_crtc) { if (!IS_ERR_OR_NULL(ipu_crtc->ipu_ch)) ipu_idmac_put(ipu_crtc->ipu_ch); if (!IS_ERR_OR_NULL(ipu_crtc->dmfc)) ipu_dmfc_put(ipu_crtc->dmfc); if (!IS_ERR_OR_NULL(ipu_crtc->dp)) ipu_dp_put(ipu_crtc->dp); if (!IS_ERR_OR_NULL(ipu_crtc->di)) ipu_di_put(ipu_crtc->di); }