]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwc-qos: Split out ->probe() and ->remove()
authorThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:35:00 +0000 (17:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:35:20 +0000 (23:35 -0700)
commit2795557165c280f09f534e60f1feb7f7210922e4
treedb9c53ebdb31bd24fdf65329f19b919d961cd53b
parentf5e9437c1e656ae5de934cdbe3f4583fd810cd6d
net: stmmac: dwc-qos: Split out ->probe() and ->remove()

Split out the binding specific parts of ->probe() and ->remove() to
enable the driver to support variants of the binding. This is useful in
order to keep backwards-compatibility while making it easy for a sub-
driver to deal only with the updated bindings rather than having to add
compatibility quirks all over the place.

Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-By: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c