]> Pileus Git - ~andy/linux/commitdiff
net: mvmdio: define module alias for platform device
authorSimon Baatz <gmbnomis@gmail.com>
Sun, 24 Mar 2013 10:33:59 +0000 (10:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2013 21:07:15 +0000 (17:07 -0400)
The mvmdio driver can be instantiated using device tree or as a classic
platform device.  In order to load the driver automatically by udev in
the latter case, the driver needs to define a module alias for the
platform device.

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

index 3472574602b27f4ea06dc542627b3c005063f49a..7b5158f654c2ab5b66bddea328ad32ee56bbcfba 100644 (file)
@@ -295,3 +295,4 @@ module_platform_driver(orion_mdio_driver);
 MODULE_DESCRIPTION("Marvell MDIO interface driver");
 MODULE_AUTHOR("Thomas Petazzoni <thomas.petazzoni@free-electrons.com>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:orion-mdio");