net: davinci_emac: Fix ioremap for devices with MDIO within the EMAC address space
authorTony Lindgren <tony@atomide.com>
Thu, 15 Jan 2015 22:45:13 +0000 (14:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jan 2015 06:00:03 +0000 (01:00 -0500)
commita1594321a9bc55ad44e02b27773cb0ed05837531
tree20ff3f5f3fecfd36719ea3d83b3575b6cf9ab45d
parent1d82ffa6ba0f645d449c1b0489bb698a9a7301ea
net: davinci_emac: Fix ioremap for devices with MDIO within the EMAC address space

Some devices like dm816x have the MDIO registers within the first EMAC
instance address space. Let's fix the issue by allowing to pass an
optional second IO range for the EMAC control register area.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c