gpu: host1x: Cleanup and refcounting for syncpoints
[linux-2.6-microblaze.git] / drivers / staging / media / tegra-video / vi.c
index 7a09061..df5ca35 100644 (file)
@@ -1131,8 +1131,8 @@ static void tegra_channel_host1x_syncpts_free(struct tegra_vi_channel *chan)
        int i;
 
        for (i = 0; i < chan->numgangports; i++) {
-               host1x_syncpt_free(chan->mw_ack_sp[i]);
-               host1x_syncpt_free(chan->frame_start_sp[i]);
+               host1x_syncpt_put(chan->mw_ack_sp[i]);
+               host1x_syncpt_put(chan->frame_start_sp[i]);
        }
 }
 
@@ -1177,7 +1177,7 @@ static int tegra_channel_host1x_syncpt_init(struct tegra_vi_channel *chan)
                mw_sp = host1x_syncpt_request(&vi->client, flags);
                if (!mw_sp) {
                        dev_err(vi->dev, "failed to request memory ack syncpoint\n");
-                       host1x_syncpt_free(fs_sp);
+                       host1x_syncpt_put(fs_sp);
                        ret = -ENOMEM;
                        goto free_syncpts;
                }