]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit4ed2d8fca7979ad82d56b67ac83a50bba2dd3419
tree7666aae5f0fe9c8671897221cfcf4f02b1f17a46
parent0dacf3f664818ab1e3e0af8ef22a86c89f34d125
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