On Mon, Apr 16, 2012 at 8:32 PM, Shubhrajyoti <[email protected]> wrote: > On Monday 16 April 2012 05:55 PM, Tarun Kanti DebBarma wrote: >> Replace the regular kzalloc and ioremap with the devm_ equivalent >> to simplify error handling. We don't need kree() anymore in >> omap_dm_timer_remove(). >> >> Also added *dev* pointer to reference pdev->dev which makes the >> usage shorter in code. >> >> Signed-off-by: Tarun Kanti DebBarma <[email protected]> >> --- >> > <snip> >> - timer->io_base = ioremap(mem->start, resource_size(mem)); >> + timer->io_base = devm_ioremap(dev, mem->start, resource_size(mem)); >> if (!timer->io_base) { > Could we use devm_request_and_ioremap here? > Yes, I will change. Thanks. -- Tarun -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
- RE: [PATCH 2/3] ARM: OMAP2+: dmtimer: clean... Paul Walmsley
- RE: [PATCH 2/3] ARM: OMAP2+: dmtimer: c... Hiremath, Vaibhav
- Re: [PATCH 2/3] ARM: OMAP2+: dmtimer: cleanup i... Paul Walmsley
- Re: [PATCH 2/3] ARM: OMAP2+: dmtimer: cleanup i... Paul Walmsley
- Re: [PATCH 2/3] ARM: OMAP2+: dmtimer: clean... DebBarma, Tarun Kanti
- Re: [PATCH 2/3] ARM: OMAP2+: dmtimer: c... Paul Walmsley
- Re: [PATCH 2/3] ARM: OMAP2+: dmtimer: c... Paul Walmsley
- Re: [PATCH 2/3] ARM: OMAP2+: dmtime... DebBarma, Tarun Kanti
- [PATCH 1/3] ARM: OMAP: dmtimer: Use devm_ API and do... Tarun Kanti DebBarma
- Re: [PATCH 1/3] ARM: OMAP: dmtimer: Use devm_ A... Shubhrajyoti
- Re: [PATCH 1/3] ARM: OMAP: dmtimer: Use dev... DebBarma, Tarun Kanti
- RE: [PATCH 0/3] ARM: OMAP2+: dmtimer: cleanup relate... Hiremath, Vaibhav
- Re: [PATCH 0/3] ARM: OMAP2+: dmtimer: cleanup r... DebBarma, Tarun Kanti
- RE: [PATCH 0/3] ARM: OMAP2+: dmtimer: clean... Hiremath, Vaibhav
