Signed-off-by: Eric Nelson <eric.nelson@xxxxxxxxxxxxxxxxxxx> --- drivers/misc/ti-st/st_kim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index c5a0e15..4b44345 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b/drivers/misc/ti-st/st_kim.c @@ -755,8 +755,10 @@ static struct ti_st_plat_data *get_platform_data(struct device *dev) dt_pdata = kzalloc(sizeof(*dt_pdata), GFP_KERNEL); - if (!dt_pdata) + if (!dt_pdata) { pr_err("Can't allocate device_tree platform data\n"); + return 0; + } dt_property = of_get_property(np, "dev_name", &len); if (dt_property) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html