mmc: omap_hsmmc: fix return error code for of_get_hsmmc_pdata
authorBalaji T K <balajitk@ti.com>
Fri, 28 Feb 2014 13:38:18 +0000 (19:08 +0530)
committerChris Ball <chris@printf.net>
Tue, 4 Mar 2014 16:45:02 +0000 (11:45 -0500)
commit19df45bcd7d153b1c7140e7dbe885a55ddcb3449
tree0ee17f405baeac77077a7a02d41a5e9eced3a767
parent2cf171cb2579e82f3d587e8ea438afb2b78ddff2
mmc: omap_hsmmc: fix return error code for of_get_hsmmc_pdata

of_get_hsmmc_pdata returns a pointer, returning NULL is invalid,
return ERR_PTR for error case.

Signed-off-by: Balaji T K <balajitk@ti.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/omap_hsmmc.c