net: dsa: qca8k: use mdio_module_driver to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 21 Sep 2016 15:05:05 +0000 (15:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 07:17:34 +0000 (03:17 -0400)
commita084ab33543cfa07033f91161978b626a9d9bd57
tree9d8d48d55f61a2389ef4387bb47f3d09ce404790
parentfcfbfd68b36b2bf4e0133dffa316831a5e180199
net: dsa: qca8k: use mdio_module_driver to simplify the code

mdio_module_driver() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c