]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit7111b717a0e1c3edf492ffad34f030e323ca371c
treed4571c4baa05a45506d135108e8a793bdda82fe2
parent43d6869037d6fa8f92a7a7e6df3b48147c8a3ef9
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