Re: [PATCH 27/27] thermal: ti-bandgap: cleanup resource allocation

2013-07-26 Thread Eduardo Valentin
On 23-07-2013 14:02, Wolfram Sang wrote: > When cleaning up usage of devm_ioremap_resource, I found that resource > allocation in this driver is ugly and buggy. If resource[0] is not > found, bgp->base will end up NULL, so OOPS. All other resources get > ioremapped, but their pointers are discarded

[PATCH 27/27] thermal: ti-bandgap: cleanup resource allocation

2013-07-23 Thread Wolfram Sang
When cleaning up usage of devm_ioremap_resource, I found that resource allocation in this driver is ugly and buggy. If resource[0] is not found, bgp->base will end up NULL, so OOPS. All other resources get ioremapped, but their pointers are discarded, so why bother. So, let's keep things simple. Ju