• S
    sh_eth: use managed device API · d5e07e69
    Sergei Shtylyov 提交于
    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: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    d5e07e69
sh_eth.h 16.8 KB