nvmem_cell_read() allocate the consumer requested amount of
buffer.This buffer needs to be free by the consumer driver
after usage.
This patch fix this issue.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
#include <linux/soc/xilinx/zynqmp/pm.h>
#include <linux/reset.h>
#include <linux/list.h>
+#include <linux/slab.h>
#define MAX_LANES 4
dev_err(&pdev->dev, "registering provider failed\n");
return PTR_ERR(provider);
}
-
+ kfree(soc_rev);
return 0;
}