| .. | .. |
|---|
| 344 | 344 | } |
|---|
| 345 | 345 | |
|---|
| 346 | 346 | ret = pm_runtime_get_sync(dev); |
|---|
| 347 | | - if (ret < 0) |
|---|
| 347 | + if (ret < 0) { |
|---|
| 348 | + pm_runtime_put_sync(dev); |
|---|
| 348 | 349 | goto exit; |
|---|
| 350 | + } |
|---|
| 349 | 351 | |
|---|
| 350 | 352 | ret = camss_enable_clocks(ispif->nclocks, ispif->clock, dev); |
|---|
| 351 | 353 | if (ret < 0) { |
|---|
| .. | .. |
|---|
| 1323 | 1325 | pads[MSM_ISPIF_PAD_SINK].flags = MEDIA_PAD_FL_SINK; |
|---|
| 1324 | 1326 | pads[MSM_ISPIF_PAD_SRC].flags = MEDIA_PAD_FL_SOURCE; |
|---|
| 1325 | 1327 | |
|---|
| 1326 | | - sd->entity.function = MEDIA_ENT_F_IO_V4L; |
|---|
| 1328 | + sd->entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER; |
|---|
| 1327 | 1329 | sd->entity.ops = &ispif_media_ops; |
|---|
| 1328 | 1330 | ret = media_entity_pads_init(&sd->entity, MSM_ISPIF_PADS_NUM, |
|---|
| 1329 | 1331 | pads); |
|---|