]> git.karo-electronics.de Git - linux-beck.git/commit
stmmac: introduce get_stmmac_bsp_priv() helper
authorJoachim Eastwood <manabian@gmail.com>
Tue, 6 Sep 2016 21:38:45 +0000 (23:38 +0200)
committerKevin Hilman <khilman@baylibre.com>
Wed, 7 Sep 2016 21:13:13 +0000 (14:13 -0700)
commit1b0acbfdb8a8884f18fdb2caa85b4beded2390fb
tree6817743a03aab33547dc206bed8c594c86e9698c
parent6aee159712acf9585b3647bd5404a1db542bc518
stmmac: introduce get_stmmac_bsp_priv() helper

Create a helper to retrieve dwmac private data from a dev
pointer. This is useful in PM callbacks and driver remove.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h