commit | b314fc7754119e12974210f06e04cd7a15206fee | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@freescale.com> | Mon Feb 17 19:05:56 2014 -0300 |
committer | Tejun Heo <tj@kernel.org> | Tue Feb 18 17:39:54 2014 -0500 |
tree | f5edc83076358d8592c80920a8d92d7e5383b229 | |
parent | 1bc18086231c130895b87ec049be8ddcdab552b8 [diff] |
pata_imx: Use devm_ioremap_resource() to simplify code Using devm_ioremap_resource() can lead to code simplication, as we don't need to explicitily check for error returned by platform_get_resource(). Also, no need to print an error message when devm_ioremap_resource() fails, as the OOM code code will shout loudly on such condition. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Tejun Heo <tj@kernel.org>