Re: [PATCH] mach_omap2: use PTR_RET instead of IS_ERR + PTR_ERR

2013-03-21 Thread Silviu Popescu
t;> introduce bugs. > > Sorry I am now not sure I follow you here. Someone just pointed out to > me that PTR_RET() is defined as ... > > static inline int __must_check PTR_RET(const void *ptr) > { > if (IS_ERR(ptr)) > return PTR_ERR(ptr); > else

Re: [PATCH] omap: convert to devm_ioremap_resource()

2013-03-12 Thread Silviu Popescu
On Tue, Mar 12, 2013 at 10:16 AM, Peter Ujfalusi wrote: > Hi, > > On 03/11/2013 04:58 PM, Silviu-Mihai Popescu wrote: >> Convert all uses of devm_request_and_ioremap() to the newly introduced >> devm_ioremap_resource() which provides more consistent error handling. >> >> devm_ioremap_resource() pr