]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: clean up platform/of_match data retrieval
authorJoachim Eastwood <manabian@gmail.com>
Thu, 16 Jul 2015 22:26:06 +0000 (00:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 03:45:56 +0000 (20:45 -0700)
commit174f8f3c0ebef5d5bb2d480906544c46eb35a446
tree7666aae5f0fe9c8671897221cfcf4f02b1f17a46
parent1cc843a34750fe2b89c638397396989a3da3a4db
stmmac: clean up platform/of_match data retrieval

Refactor code to clearly separate probing non-dt versus dt. In the
non-dt case platform data must be supplied to probe successfully.
For dt the platform data structure is created and match data is
copied into it. Note that support for supplying platform data in
dt from AUXDATA is dropped as no users in mainline does this.

This change will allow dt dwmac-* drivers to call the config_dt()
function from probe to create the needed platform data struct and
retrieve common dt properties.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c