Re: [PATCH 2/5] mfd: tps65090: add error prints when mem alloc failed

From: Laxman Dewangan
Date: Mon Oct 08 2012 - 02:36:35 EST


On Sunday 07 October 2012 09:43 PM, Joe Perches wrote:
On Sun, 2012-10-07 at 20:52 +0530, Laxman Dewangan wrote:
Add error prints when memory allocation failed for
tps65090 data. Also cleanups the melloc arguments.
The new dev_err is unnecessary.
A dump_stack is already done on alloc failures.
The sizeof(* is ok.


I think this will also prints the device name for which it fails and so when we have multiple device, it will help to find out the failure case.

Thanks,
Laxman
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/