]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/misc/sram.c
genalloc: add name arg to gen_pool_get() and devm_gen_pool_create()
[mirror_ubuntu-artful-kernel.git] / drivers / misc / sram.c
index 15c33cc34a802fd23f93846da023eeff85261ce4..431e1dd528bcb8dd0d662eec74bdc865d663dd4c 100644 (file)
@@ -186,10 +186,10 @@ static int sram_probe(struct platform_device *pdev)
        if (IS_ERR(sram->virt_base))
                return PTR_ERR(sram->virt_base);
 
-       sram->pool = devm_gen_pool_create(sram->dev,
-                                         ilog2(SRAM_GRANULARITY), -1);
-       if (!sram->pool)
-               return -ENOMEM;
+       sram->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY),
+                                         NUMA_NO_NODE, NULL);
+       if (IS_ERR(sram->pool))
+               return PTR_ERR(sram->pool);
 
        ret = sram_reserve_regions(sram, res);
        if (ret)