diff options
Diffstat (limited to 'drivers/media/platform/coda/coda-common.c')
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 6d6e0ca91fb4..6e640c0f0b35 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c | |||
@@ -2157,7 +2157,7 @@ static int coda_probe(struct platform_device *pdev) | |||
2157 | /* Get IRAM pool from device tree or platform data */ | 2157 | /* Get IRAM pool from device tree or platform data */ |
2158 | pool = of_get_named_gen_pool(np, "iram", 0); | 2158 | pool = of_get_named_gen_pool(np, "iram", 0); |
2159 | if (!pool && pdata) | 2159 | if (!pool && pdata) |
2160 | pool = dev_get_gen_pool(pdata->iram_dev); | 2160 | pool = gen_pool_get(pdata->iram_dev); |
2161 | if (!pool) { | 2161 | if (!pool) { |
2162 | dev_err(&pdev->dev, "iram pool not available\n"); | 2162 | dev_err(&pdev->dev, "iram pool not available\n"); |
2163 | return -ENOMEM; | 2163 | return -ENOMEM; |