diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-03-21 10:41:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-21 17:20:55 -0400 |
commit | d5e07e69218fd9aa21d6c8c5ccc629d92bdb9b0f (patch) | |
tree | be37d9a766c93eeffcfbb38b748698cafc236e4a /arch/powerpc/net/bpf_jit_comp.c | |
parent | 564044b0928d46a87774c246ae80cb3cead9264d (diff) | |
download | talos-op-linux-d5e07e69218fd9aa21d6c8c5ccc629d92bdb9b0f.tar.gz talos-op-linux-d5e07e69218fd9aa21d6c8c5ccc629d92bdb9b0f.zip |
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 <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/powerpc/net/bpf_jit_comp.c')
0 files changed, 0 insertions, 0 deletions