aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas/sh_eth.h
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2013-03-21 10:41:11 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-21 17:20:55 -0400
commitd5e07e69218fd9aa21d6c8c5ccc629d92bdb9b0f (patch)
treebe37d9a766c93eeffcfbb38b748698cafc236e4a /drivers/net/ethernet/renesas/sh_eth.h
parentsh_eth: kill unneeded typecast in sh_eth_drv_probe() (diff)
downloadlinux-dev-d5e07e69218fd9aa21d6c8c5ccc629d92bdb9b0f.tar.xz
linux-dev-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 '')
-rw-r--r--drivers/net/ethernet/renesas/sh_eth.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h
index e6655678458e..bae84fd2e73a 100644
--- a/drivers/net/ethernet/renesas/sh_eth.h
+++ b/drivers/net/ethernet/renesas/sh_eth.h
@@ -705,7 +705,6 @@ struct sh_eth_private {
const u16 *reg_offset;
void __iomem *addr;
void __iomem *tsu_addr;
- struct bb_info *bitbang;
u32 num_rx_ring;
u32 num_tx_ring;
dma_addr_t rx_desc_dma;