summaryrefslogtreecommitdiff
path: root/drivers/pmdomain/ti/omap_prm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pmdomain/ti/omap_prm.c')
-rw-r--r--drivers/pmdomain/ti/omap_prm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pmdomain/ti/omap_prm.c b/drivers/pmdomain/ti/omap_prm.c
index c2feae3a634c..b8ceb3c2b81c 100644
--- a/drivers/pmdomain/ti/omap_prm.c
+++ b/drivers/pmdomain/ti/omap_prm.c
@@ -695,6 +695,8 @@ static int omap_prm_domain_init(struct device *dev, struct omap_prm *prm)
data = prm->data;
name = devm_kasprintf(dev, GFP_KERNEL, "prm_%s",
data->name);
+ if (!name)
+ return -ENOMEM;
prmd->dev = dev;
prmd->prm = prm;