net: stmmac: Use driver data and callbacks tied with compatible strings
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Jan 2014 13:24:46 +0000 (21:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2014 04:02:03 +0000 (20:02 -0800)
commit022066f50f53000679d31eb407693085f37b3f14
tree5c3e56178997ada2cb54aa68729881f748e50336
parent436f7ecdcc08f71ddc106b7bbe3bcbf1785f3bff
net: stmmac: Use driver data and callbacks tied with compatible strings

The stmmac driver core allows passing feature flags and callbacks via
platform data. Add a similar stmmac_of_data to pass flags and callbacks
tied to compatible strings. This allows us to extend stmmac with glue
layers for different SoCs.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h