From: Sergei Shtylyov Date: Thu, 21 Mar 2013 10:41:11 +0000 (+0000) Subject: sh_eth: use managed device API X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~375 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5e07e69218fd9aa21d6c8c5ccc629d92bdb9b0f;p=pandora-kernel.git sh_eth: use managed device API Switch the driver to the managed device API by replacing ioremap() calls with devm_ioremap_resource() (that will also result in calling request_mem_region() which the driver forgot to do until now) and k[mz]alloc() with devm_kzalloc() -- this permits to simplify driver's probe()/remove() method cleanup. We can now remove the ioremap() error messages since the error messages are printed by devm_ioremap_resource() itself. We can also remove the 'bitbang' field from 'struct sh_eth_private' as we don't need it anymore in order to free the memory behind it... Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller --- Reading git-diff-tree failed