]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvmdio: allow platform device style registration
authorFlorian Fainelli <florian@openwrt.org>
Fri, 22 Mar 2013 03:39:25 +0000 (03:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Mar 2013 14:25:15 +0000 (10:25 -0400)
commitb20ab538353fd90363f60d8fef15515136aaa89e
treed4571c4baa05a45506d135108e8a793bdda82fe2
parent8eeab103b02079ed688c4f711bfcfd53dbca4dd2
net: mvmdio: allow platform device style registration

This patch changes the mvmdio driver not to use device tree
helper functions such as of_mdiobus_register() and of_iomap() so we can
instantiate this driver using a classic platform_device approach. Use
the device manager helper to ioremap() the base register cookie so we
get automatic freeing upon error and removal. This change is harmless
for Device Tree platforms because they will get the driver be registered
the same way as it was before.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvmdio.c