of/mdio-gpio: Simplify the way device tree support is implemented.
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Fri, 24 Aug 2012 01:59:17 +0000 (01:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2012 16:37:52 +0000 (12:37 -0400)
commite92bdf4bf199f582dae8249a21e991db4bf66480
tree6619f8122ee1204d67ae3148d673647cc7010483
parentf9dc9ac51610a35629c8211b6b8c9b0c65cf0e1d
of/mdio-gpio: Simplify the way device tree support is implemented.

This patch cleans up the way device tree support is added in mdio-gpio
driver. I found lot of code duplication which is not necessary.
Also strangely a new platform driver was also introduced for device tree
support. All this forced me to do this cleanup patch.
After this patch, the driver probe checks the of_node pointer to get the
data from device tree.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c