stmmac: add init/exit callback in plat_stmmacenet_data struct
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 24 Nov 2010 02:38:05 +0000 (02:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Nov 2010 19:14:24 +0000 (11:14 -0800)
commit293bb1c41b728d4aa248fe8a0acd2b9066ff5c34
tree18d96fedbebd22b855ad47b1891797f418bf6a79
parent9dfeb4d953f914bd3bb56ce60e22ee84687399ce
stmmac: add init/exit callback in plat_stmmacenet_data struct

This patch adds in the plat_stmmacenet_data
the init and exit callbacks that can be used
for invoking specific platform functions.
For example, on ST targets, these call the
PAD manager functions to set PIO lines and
syscfg registers.
The patch removes the stmmac_claim_resource
only used on STM Kernels as well.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac.h
drivers/net/stmmac/stmmac_main.c
include/linux/stmmac.h